should fix GS codes that don't work on games which use lcd interrupts instead of vblank

thanks unmacaque

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1014 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
squall-leonhart 2011-05-05 13:17:13 +00:00
parent e3b06a9684
commit 77ae016369
1 changed files with 1 additions and 0 deletions

View File

@ -2016,6 +2016,7 @@ void gbVblank_interrupt()
void gbLcd_interrupt() void gbLcd_interrupt()
{ {
gbCheatWrite(false); // Emulates GS codes.
gbMemory[0xff0f] = register_IF &= 0xfd; gbMemory[0xff0f] = register_IF &= 0xfd;
gbWriteMemory(--SP.W, PC.B.B1); gbWriteMemory(--SP.W, PC.B.B1);
gbWriteMemory(--SP.W, PC.B.B0); gbWriteMemory(--SP.W, PC.B.B0);