OCD on PCE.
This commit is contained in:
parent
bca61622a8
commit
7d7df26c7e
|
@ -39,7 +39,6 @@ static UINT8 *PCECartRAM;
|
||||||
static UINT8 *PCEUserRAM;
|
static UINT8 *PCEUserRAM;
|
||||||
static UINT8 *PCECDBRAM;
|
static UINT8 *PCECDBRAM;
|
||||||
|
|
||||||
|
|
||||||
static UINT32 *DrvPalette;
|
static UINT32 *DrvPalette;
|
||||||
UINT8 PCEPaletteRecalc;
|
UINT8 PCEPaletteRecalc;
|
||||||
|
|
||||||
|
@ -63,7 +62,6 @@ static INT32 pce_sf2 = 0;
|
||||||
static INT32 pce_sf2_bank;
|
static INT32 pce_sf2_bank;
|
||||||
static UINT8 bram_locked = 1;
|
static UINT8 bram_locked = 1;
|
||||||
|
|
||||||
|
|
||||||
INT32 PceGetZipName(char** pszName, UINT32 i)
|
INT32 PceGetZipName(char** pszName, UINT32 i)
|
||||||
{
|
{
|
||||||
static char szFilename[MAX_PATH];
|
static char szFilename[MAX_PATH];
|
||||||
|
@ -218,19 +216,22 @@ static void pce_write(UINT32 address, UINT8 data)
|
||||||
h6280_irq_status_w(address & 0x3ff, data);
|
h6280_irq_status_w(address & 0x3ff, data);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case 0x1ff800:
|
case 0x1ff800: // cd system
|
||||||
|
{
|
||||||
switch( address & 0xf )
|
switch( address & 0xf )
|
||||||
{
|
{
|
||||||
case 0x07: /* BRAM unlock / CD status */
|
case 0x07: /* BRAM unlock / CD status */
|
||||||
|
{
|
||||||
if (data & 0x80)
|
if (data & 0x80)
|
||||||
{
|
{
|
||||||
bram_locked = 0;
|
bram_locked = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
bprintf(0,_T("CD write %x:%x\n"), address, data );
|
bprintf(0,_T("CD write %x:%x\n"), address, data );
|
||||||
// cd system
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -249,13 +250,10 @@ static void pce_write(UINT32 address, UINT8 data)
|
||||||
|
|
||||||
static UINT8 pce_read(UINT32 address)
|
static UINT8 pce_read(UINT32 address)
|
||||||
{
|
{
|
||||||
|
|
||||||
address &= 0x1fffff;
|
address &= 0x1fffff;
|
||||||
|
|
||||||
switch (address & ~0x3ff)
|
switch (address & ~0x3ff)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
case 0x1fe000:
|
case 0x1fe000:
|
||||||
return vdc_read(0, address);
|
return vdc_read(0, address);
|
||||||
|
|
||||||
|
@ -316,6 +314,7 @@ static UINT8 pce_read(UINT32 address)
|
||||||
}
|
}
|
||||||
|
|
||||||
bprintf(0,_T("Unknown read %x\n"), address );
|
bprintf(0,_T("Unknown read %x\n"), address );
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue