Starfox 2 fixed

This commit is contained in:
pagefault
2004-10-12 18:42:52 +00:00
parent a0ae6c8a98
commit edec78e982
2 changed files with 9 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ EXTSYM C4VBlank
EXTSYM dsp1teststuff EXTSYM dsp1teststuff
EXTSYM ReturnFromSPCStall,SPCStallSetting,cycpb268,cycpb358,HIRQSkip,scanlines EXTSYM ReturnFromSPCStall,SPCStallSetting,cycpb268,cycpb358,HIRQSkip,scanlines
EXTSYM smallscreenon,ScreenScale EXTSYM smallscreenon,ScreenScale
EXTSYM MainLoop,NumberOfOpcodes,SfxCLSR,SfxSCMR,SfxPOR EXTSYM MainLoop,NumberOfOpcodes,SfxCLSR,SfxSCMR,SfxPOR,SFXIRQFlag
EXTSYM sfx128lineloc,sfx160lineloc,sfx192lineloc,sfxobjlineloc,sfxclineloc EXTSYM sfx128lineloc,sfx160lineloc,sfx192lineloc,sfxobjlineloc,sfxclineloc
EXTSYM PLOTJmpa,PLOTJmpb,FxTable,FxTableb,FxTablec,FxTabled EXTSYM PLOTJmpa,PLOTJmpb,FxTable,FxTableb,FxTablec,FxTabled
EXTSYM SfxPBR,SCBRrel,SfxSCBR,SfxCOLR,hdmaearlstart,SFXCounter EXTSYM SfxPBR,SCBRrel,SfxSCBR,SfxCOLR,hdmaearlstart,SFXCounter
@@ -2844,7 +2844,9 @@ NEWSYM cpuover
dec word[curypos] dec word[curypos]
mov [tempdh],dh mov [tempdh],dh
xor dh,dh xor dh,dh
mov byte[doirqnext],0
mov al,[SFXIRQFlag]
mov byte[doirqnext],al
call exechdma call exechdma
call exechdma call exechdma

View File

@@ -2440,6 +2440,7 @@ SDD1memmap:
SECTION .data SECTION .data
NEWSYM memdest, dd 0 NEWSYM memdest, dd 0
NEWSYM SFXIRQFlag, db 0
NEWSYM SFXCounter, dd 0 NEWSYM SFXCounter, dd 0
SECTION .text SECTION .text
@@ -4413,6 +4414,7 @@ NEWSYM CheckROMType
; Chip Detection ; Chip Detection
mov byte[SFXEnable],0 mov byte[SFXEnable],0
mov byte[SFXIRQFlag],0
mov byte[C4Enable],0 mov byte[C4Enable],0
mov byte[SPC7110Enable],0 mov byte[SPC7110Enable],0
mov byte[RTCEnable],0 mov byte[RTCEnable],0
@@ -4488,12 +4490,14 @@ NEWSYM CheckROMType
;Super FX has SRAM, but only a battery to save it on the latter two ;Super FX has SRAM, but only a battery to save it on the latter two
cmp ax,01320h cmp ax,01320h
jne .notSFXA jne .notSFXA
int 3h
mov byte[SFXEnable],1 mov byte[SFXEnable],1
jmp .endchpdtct jmp .endchpdtct
.notSFXA .notSFXA
cmp ax,01420h cmp ax,01420h
jne .notSFXB jne .notSFXB
mov byte[SFXEnable],1 mov byte[SFXEnable],1
int 3h
jmp .endchpdtct jmp .endchpdtct
.notSFXB .notSFXB
cmp ax,01520h cmp ax,01520h
@@ -4505,6 +4509,7 @@ NEWSYM CheckROMType
cmp ax,01A20h cmp ax,01A20h
jne .notSFXD jne .notSFXD
mov byte[SFXEnable],1 mov byte[SFXEnable],1
mov byte[SFXIRQFlag],1
mov byte[SFXSRAM],1 ;Contains Battery mov byte[SFXSRAM],1 ;Contains Battery
jmp .endchpdtct jmp .endchpdtct
.notSFXD .notSFXD