SuperFX 20mhz timing fix, fixes Starfox 2

This commit is contained in:
pagefault
2004-10-18 20:13:20 +00:00
parent 864c1bb94f
commit d3291cb162

View File

@@ -4196,6 +4196,7 @@ NEWSYM UpdateCLSR
test byte[SfxCLSR],01h test byte[SfxCLSR],01h
jz .nohighsfx jz .nohighsfx
mov dword [NumberOfOpcodes2],700 ;700 mov dword [NumberOfOpcodes2],700 ;700
int 3h
.nohighsfx .nohighsfx
cmp byte[SFXCounter],1 cmp byte[SFXCounter],1
je .noyi je .noyi
@@ -4228,6 +4229,10 @@ NEWSYM StartSFX
jz .noaccess jz .noaccess
.noram .noram
mov eax,[NumberOfOpcodes2] mov eax,[NumberOfOpcodes2]
test byte[SfxCLSR],0
jnz .nofastsfx
add eax,500000
.nofastsfx
mov [NumberOfOpcodes],eax mov [NumberOfOpcodes],eax
call MainLoop call MainLoop
.noaccess .noaccess