Undo changes

This commit is contained in:
pagefault
2001-12-05 22:29:04 +00:00
parent 6ee9555e12
commit e9232cb59b
2 changed files with 59 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ EXTSYM memtablew8,regptr
EXTSYM dmadata EXTSYM dmadata
EXTSYM hdmatype EXTSYM hdmatype
EXTSYM nexthdma EXTSYM nexthdma
EXTSYM curhdma,curypos,pdh,cycphb,hdmadata,hdmadelay,hdmaearlstart EXTSYM curhdma,curypos,disablehdma,hdmadata,hdmadelay,hdmaearlstart
EXTSYM resolutn EXTSYM resolutn
EXTSYM memtabler16 EXTSYM memtabler16
@@ -778,9 +778,8 @@ NEWSYM reg420Cw
mov bx,[resolutn] mov bx,[resolutn]
cmp word[curypos],bx cmp word[curypos],bx
jae near .nohdma jae near .nohdma
mov dh,[pdh] cmp byte[disablehdma],0
cmp dh,[cycphb] jne near .nohdma
jb near .nohdma
; jmp starthdma ; jmp starthdma
mov al,[curhdma] mov al,[curhdma]
mov [nexthdma],al mov [nexthdma],al

View File

@@ -1320,6 +1320,7 @@ NEWSYM StoreBuffer, times 128*32 db 0
SECTION .data SECTION .data
NEWSYM execatzerovirq, db 0 NEWSYM execatzerovirq, db 0
NEWSYM disablehdma, db 0
NEWSYM disableeffects, db 0 NEWSYM disableeffects, db 0
NEWSYM hdmaearlstart, db 0 NEWSYM hdmaearlstart, db 0
NEWSYM hdmadelay, db 0 NEWSYM hdmadelay, db 0
@@ -1451,6 +1452,7 @@ headerhack2:
.mmx2head db 50,58,56,62,50,62,49,95,39,77,95,95,95,95,95,95,95,95,95,95 .mmx2head db 50,58,56,62,50,62,49,95,39,77,95,95,95,95,95,95,95,95,95,95
NEWSYM headerhack NEWSYM headerhack
mov byte[disablehdma],0
mov byte[Offby1line],0 mov byte[Offby1line],0
mov byte[CacheCheckSkip],0 mov byte[CacheCheckSkip],0
mov word[IRQHack],0 mov word[IRQHack],0
@@ -1616,6 +1618,30 @@ NEWSYM headerhack
mov byte[opexec358],187 mov byte[opexec358],187
.notds9 .notds9
mov esi,[romdata]
add esi,0FFC0h
cmp dword[esi],'Baha'
jne .notbahamutlagoon
cmp dword[esi+4],'mut '
jne .notbahamutlagoon
cmp dword[esi+8],'Lago'
jne .notbahamutlagoon
mov byte[disablehdma],1
.notbahamutlagoon
mov esi,[romdata]
add esi,07FC0h
cmp dword[esi],'MORT'
jne .notmk
cmp dword[esi+4],'AL K'
jne .notmk
cmp dword[esi+8],'OMBA'
jne .notmk
cmp dword[esi+12],'T '
jne .notmk
mov byte[disablehdma],1
.notmk
mov esi,[romdata] mov esi,[romdata]
add esi,0FFC0h add esi,0FFC0h
cmp dword[esi],'CLOC' cmp dword[esi],'CLOC'
@@ -1642,6 +1668,20 @@ NEWSYM headerhack
mov byte[opexec358cph],58 mov byte[opexec358cph],58
.notequinox .notequinox
mov esi,[romdata]
add esi,07FC0h
cmp dword[esi],'DRAG'
jne .notdq5
cmp dword[esi+4],'ONQU'
jne .notdq5
cmp dword[esi+8],'EST5'
jne .notdq5
mov byte[opexec268],220
mov byte[opexec358],220
mov byte[opexec268cph],64
mov byte[opexec358cph],64
.notdq5
; Lamborgini Challenge - -p 110 ; Lamborgini Challenge - -p 110
mov esi,[romdata] mov esi,[romdata]
add esi,07FC0h add esi,07FC0h
@@ -1678,6 +1718,11 @@ NEWSYM headerhack
mov byte[cycpblt],75 mov byte[cycpblt],75
.nottuffenuff .nottuffenuff
cmp byte[DSP1Type],0
je .notdis
mov byte[disablehdma],1
.notdis
; Here are the individual game hacks. Some of these probably can ; Here are the individual game hacks. Some of these probably can
; be removed since many of them were created very early in ZSNES ; be removed since many of them were created very early in ZSNES
; development. ; development.
@@ -1803,6 +1848,16 @@ NEWSYM headerhack
mov byte[opexec358cph],44 mov byte[opexec358cph],44
.noromhead5 .noromhead5
; PunchOut - Disable HDMA start in middle of screen
mov esi,[romdata]
add esi,07FC0h
mov edi,.pouthead
call Checkheadersame
cmp al,0
jne .noromhead7
mov byte[disablehdma],1
.noromhead7
; Front Mission - -p 140 ; Front Mission - -p 140
mov esi,[romdata] mov esi,[romdata]
add esi,0FFC0h add esi,0FFC0h
@@ -2014,6 +2069,7 @@ NEWSYM init65816
mov byte[prevoamptr],0FFh mov byte[prevoamptr],0FFh
mov byte[execatzerovirq],0 mov byte[execatzerovirq],0
mov byte[disablehdma],0
mov byte[disableeffects],0 mov byte[disableeffects],0
mov byte[dracxhack],0 mov byte[dracxhack],0
mov al,[opexec268b] mov al,[opexec268b]