Made STOP clear the IRQ flag when it's set, this fixes Star Fox 2

This commit is contained in:
pagefault
2006-02-19 10:22:27 +00:00
parent 8ae1e80cce
commit 21053fe9a2

View File

@@ -48,9 +48,11 @@ NEWSYM FxOpd00 ; STOP stop GSU execution (and maybe generate an IRQ)
and dword[SfxSFR],0FFFFh-32 ; Clear Go flag (set to 1 when the GSU is running)
test dword[SfxCFGR],080h ; Check if the interrupt generation is on
jnz .NoIRQ
or dword[SfxSFR],08000h ; Set IRQ Flag
; Set IRQ Flag
.NoIRQ
CLRFLAGS
and byte[SfxSFR+1],07fh
inc ebp
mov eax,[NumberOfOpcodes]
add eax,0F0000000h