Memmapping port step 1 - easier to read, still a lot to do. Power on w/ clear SRAM now works with SA-1 games. Reverted chips/sa1proc.asm to rev 1.42 because all recent work only breaks HnK3 (the SMRPG fix is due to pagefault's subscreen/windowing logic fixes).
This commit is contained in:
@@ -121,7 +121,7 @@ NEWSYM SA1Swap
|
||||
; Check if IRQ is executed on SA-1
|
||||
xor eax,eax
|
||||
mov al,dl
|
||||
add dh,150
|
||||
add dh,25
|
||||
mov edi,[SA1tablead+eax*4]
|
||||
mov byte[SA1Status],1
|
||||
test dword[SA1DoIRQ],0FF000003h
|
||||
@@ -157,14 +157,14 @@ NEWSYM SA1Swap
|
||||
mov dword[snesmap2],eax
|
||||
mov edi,[prevedi]
|
||||
xor eax,eax
|
||||
add dh,34
|
||||
add dh,11
|
||||
inc byte[CurrentExecSA1]
|
||||
mov byte[SA1Status],0
|
||||
add dword[SA1TimerVal],23
|
||||
ret
|
||||
|
||||
.speedhack
|
||||
add dh,50
|
||||
add dh,100
|
||||
|
||||
mov bl,[esi]
|
||||
inc esi
|
||||
@@ -191,7 +191,7 @@ NEWSYM SA1Swap
|
||||
mov byte[SA1Status],0
|
||||
add dword[SA1TimerVal],23
|
||||
; xor dh,dh
|
||||
add dh,35
|
||||
mov dh,18
|
||||
cmp esi,dword[SA1LBound]
|
||||
jb .stoph
|
||||
cmp esi,dword[SA1UBound]
|
||||
|
||||
Reference in New Issue
Block a user