Front Mission fix
This commit is contained in:
@@ -1306,7 +1306,6 @@ COPemulmode
|
|||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
%macro RTIMacro 0
|
%macro RTIMacro 0
|
||||||
; mov byte[doirqnext],0
|
|
||||||
cmp byte[nmistatus],3
|
cmp byte[nmistatus],3
|
||||||
jne .nodis658162
|
jne .nodis658162
|
||||||
test byte[curexecstate],01h
|
test byte[curexecstate],01h
|
||||||
@@ -1363,6 +1362,7 @@ COPemulmode
|
|||||||
mov esi,[snesmmap+ebx*4]
|
mov esi,[snesmmap+ebx*4]
|
||||||
mov [initaddrl],esi
|
mov [initaddrl],esi
|
||||||
add esi,eax
|
add esi,eax
|
||||||
|
mov byte[doirqnext],0
|
||||||
test dl,00010000b
|
test dl,00010000b
|
||||||
jnz .setx
|
jnz .setx
|
||||||
endloop
|
endloop
|
||||||
|
|||||||
@@ -1305,7 +1305,6 @@ COPemulmode
|
|||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
%macro RTIMacro 0
|
%macro RTIMacro 0
|
||||||
; mov byte[doirqnext],0
|
|
||||||
cmp byte[nmistatus],3
|
cmp byte[nmistatus],3
|
||||||
jne .nodis658162
|
jne .nodis658162
|
||||||
test byte[curexecstate],01h
|
test byte[curexecstate],01h
|
||||||
@@ -1363,6 +1362,7 @@ COPemulmode
|
|||||||
mov esi,[snesmmap+ebx*4]
|
mov esi,[snesmmap+ebx*4]
|
||||||
mov [initaddrl],esi
|
mov [initaddrl],esi
|
||||||
add esi,eax
|
add esi,eax
|
||||||
|
mov byte[doirqnext],0
|
||||||
cmp byte[esi],0CBh
|
cmp byte[esi],0CBh
|
||||||
jne .notwai
|
jne .notwai
|
||||||
mov byte[intrset],2
|
mov byte[intrset],2
|
||||||
|
|||||||
@@ -1319,7 +1319,6 @@ COPemulmode
|
|||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
%macro RTIMacro 0
|
%macro RTIMacro 0
|
||||||
; mov byte[doirqnext],0
|
|
||||||
cmp byte[nmistatus],3
|
cmp byte[nmistatus],3
|
||||||
jne near .nodis658162
|
jne near .nodis658162
|
||||||
test byte[curexecstate],01h
|
test byte[curexecstate],01h
|
||||||
@@ -1377,6 +1376,7 @@ COPemulmode
|
|||||||
mov esi,[snesmmap+ebx*4]
|
mov esi,[snesmmap+ebx*4]
|
||||||
mov [initaddrl],esi
|
mov [initaddrl],esi
|
||||||
add esi,eax
|
add esi,eax
|
||||||
|
mov byte[doirqnext],0
|
||||||
cmp byte[esi],0CBh
|
cmp byte[esi],0CBh
|
||||||
jne .notwai
|
jne .notwai
|
||||||
mov byte[intrset],2
|
mov byte[intrset],2
|
||||||
|
|||||||
@@ -1843,8 +1843,21 @@ NEWSYM headerhack
|
|||||||
mov esi,[romdata]
|
mov esi,[romdata]
|
||||||
add esi,0FFC0h
|
add esi,0FFC0h
|
||||||
cmp dword[esi],0C4DDDBCCh
|
cmp dword[esi],0C4DDDBCCh
|
||||||
jne .noromheadfm2
|
jne .noromheadfm
|
||||||
cmp dword[esi+4],0AEBCAFD0h
|
cmp dword[esi+4],0AEBCAFD0h
|
||||||
|
jne .noromheadfm
|
||||||
|
mov byte[opexec268],226
|
||||||
|
mov byte[opexec358],226
|
||||||
|
mov byte[opexec268cph],80
|
||||||
|
mov byte[opexec358cph],80
|
||||||
|
.noromheadfm
|
||||||
|
|
||||||
|
; Front Mission - -p 140
|
||||||
|
mov esi,[romdata]
|
||||||
|
add esi,0FFC0h
|
||||||
|
cmp dword[esi],'FRON'
|
||||||
|
jne .noromheadfm2
|
||||||
|
cmp dword[esi+4],'T MI'
|
||||||
jne .noromheadfm2
|
jne .noromheadfm2
|
||||||
mov byte[opexec268],226
|
mov byte[opexec268],226
|
||||||
mov byte[opexec358],226
|
mov byte[opexec358],226
|
||||||
@@ -1875,19 +1888,6 @@ NEWSYM headerhack
|
|||||||
mov word[ramsizeand],4095
|
mov word[ramsizeand],4095
|
||||||
.noromheaddk
|
.noromheaddk
|
||||||
|
|
||||||
; Front Mission - -p 140
|
|
||||||
mov esi,[romdata]
|
|
||||||
add esi,0FFC0h
|
|
||||||
cmp dword[esi],'FRON'
|
|
||||||
jne .noromheadfm
|
|
||||||
cmp dword[esi+4],'T MI'
|
|
||||||
jne .noromheadfm
|
|
||||||
mov byte[opexec268],226
|
|
||||||
mov byte[opexec358],226
|
|
||||||
mov byte[opexec268cph],80
|
|
||||||
mov byte[opexec358cph],80
|
|
||||||
.noromheadfm
|
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.ewj2head db 58,62,45,43,55,40,48,45,50,95,53,54,50,95,77,95,95,95,95,95
|
.ewj2head db 58,62,45,43,55,40,48,45,50,95,53,54,50,95,77,95,95,95,95,95
|
||||||
|
|||||||
Reference in New Issue
Block a user