better fix for d7810f6ea9
, remove incorrect comment
This commit is contained in:
parent
f1a3e02e89
commit
95c06e0b6e
Binary file not shown.
|
@ -333,8 +333,6 @@ RISC_OPCODE(moveq)
|
|||
RISC_OPCODE(resmac)
|
||||
{
|
||||
RN = (uint32_t)risc_acc;
|
||||
//this makes Club Drive sound ok, but it has missing sounds and other games/bios suffer
|
||||
//risc_inhibit_interrupt = 1;
|
||||
}
|
||||
|
||||
RISC_OPCODE(imult)
|
||||
|
|
|
@ -561,6 +561,8 @@ void TOMWriteByte(uint32_t offset, uint8_t data, uint32_t who)
|
|||
if ((offset < 0xF00000) || (offset > 0xF03FFF))
|
||||
return;
|
||||
|
||||
tomRam8[offset & 0x3FFF] = data;
|
||||
|
||||
if ((offset >= GPU_CONTROL_RAM_BASE) && (offset < GPU_CONTROL_RAM_BASE+0x20))
|
||||
{
|
||||
GPUWriteByte(offset, data, who);
|
||||
|
@ -599,10 +601,6 @@ void TOMWriteByte(uint32_t offset, uint8_t data, uint32_t who)
|
|||
offset &= 0x5FF;
|
||||
tomRam8[offset] = data, tomRam8[offset + 0x200] = data;
|
||||
}
|
||||
else
|
||||
{
|
||||
tomRam8[offset & 0x3FFF] = data;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -616,6 +614,9 @@ void TOMWriteWord(uint32_t offset, uint16_t data, uint32_t who)
|
|||
if ((offset < 0xF00000) || (offset > 0xF03FFF))
|
||||
return;
|
||||
|
||||
tomRam8[(offset + 0) & 0x3FFF] = data >> 8;
|
||||
tomRam8[(offset + 1) & 0x3FFF] = data & 0xFF;
|
||||
|
||||
if ((offset >= GPU_CONTROL_RAM_BASE) && (offset < GPU_CONTROL_RAM_BASE+0x20))
|
||||
{
|
||||
GPUWriteWord(offset, data, who);
|
||||
|
@ -679,9 +680,6 @@ void TOMWriteWord(uint32_t offset, uint16_t data, uint32_t who)
|
|||
tomWidth = width, tomHeight = height;
|
||||
}
|
||||
}
|
||||
|
||||
tomRam8[(offset + 0) & 0x3FFF] = data >> 8;
|
||||
tomRam8[(offset + 1) & 0x3FFF] = data & 0xFF;
|
||||
}
|
||||
|
||||
int TOMIRQEnabled(int irq)
|
||||
|
|
Loading…
Reference in New Issue