games fix
This commit is contained in:
@@ -1306,7 +1306,7 @@ COPemulmode
|
|||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
%macro RTIMacro 0
|
%macro RTIMacro 0
|
||||||
mov byte[doirqnext],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
|
||||||
|
|||||||
@@ -1305,7 +1305,7 @@ COPemulmode
|
|||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
%macro RTIMacro 0
|
%macro RTIMacro 0
|
||||||
mov byte[doirqnext],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
|
||||||
|
|||||||
@@ -1319,7 +1319,7 @@ COPemulmode
|
|||||||
%endmacro
|
%endmacro
|
||||||
|
|
||||||
%macro RTIMacro 0
|
%macro RTIMacro 0
|
||||||
mov byte[doirqnext],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
|
||||||
|
|||||||
@@ -317,8 +317,8 @@ NEWSYM divres, dw 0 ; quotent of divc/divb
|
|||||||
NEWSYM multres, dw 0 ; result of multa * multb/remainder of divc/divb
|
NEWSYM multres, dw 0 ; result of multa * multb/remainder of divc/divb
|
||||||
NEWSYM latchx, dw 0 ; latched x value
|
NEWSYM latchx, dw 0 ; latched x value
|
||||||
NEWSYM latchy, dw 0 ; latched y value
|
NEWSYM latchy, dw 0 ; latched y value
|
||||||
NEWSYM latchxr, db 1 ; low or high byte read for x value
|
NEWSYM latchxr, db 0 ; low or high byte read for x value
|
||||||
NEWSYM latchyr, db 1 ; low or high byte read for y value
|
NEWSYM latchyr, db 0 ; low or high byte read for y value
|
||||||
NEWSYM frskipper, db 0 ; used to control frame skipping
|
NEWSYM frskipper, db 0 ; used to control frame skipping
|
||||||
NEWSYM winl1, db 0 ; window 1 left position
|
NEWSYM winl1, db 0 ; window 1 left position
|
||||||
NEWSYM winr1, db 0 ; window 1 right position
|
NEWSYM winr1, db 0 ; window 1 right position
|
||||||
@@ -673,6 +673,8 @@ reg213Cr:
|
|||||||
ret
|
ret
|
||||||
.highv
|
.highv
|
||||||
mov al,byte[latchx+1]
|
mov al,byte[latchx+1]
|
||||||
|
and al,1
|
||||||
|
or al,byte[latchx]
|
||||||
mov byte[latchxr],0
|
mov byte[latchxr],0
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@@ -684,7 +686,9 @@ reg213Dr:
|
|||||||
mov byte[latchyr],1
|
mov byte[latchyr],1
|
||||||
ret
|
ret
|
||||||
.highv
|
.highv
|
||||||
mov al,byte[latchy+1]
|
mov al,byte[latchy]
|
||||||
|
and al,0FEh
|
||||||
|
or al,byte[latchy+1]
|
||||||
mov byte[latchyr],0
|
mov byte[latchyr],0
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
|||||||
@@ -1585,6 +1585,10 @@ reg4208w:
|
|||||||
reg4209w:
|
reg4209w:
|
||||||
mov [VIRQLoc],al
|
mov [VIRQLoc],al
|
||||||
; mov bx,[curypos]
|
; mov bx,[curypos]
|
||||||
|
cmp word [VIRQLoc],106h
|
||||||
|
jne .not106
|
||||||
|
mov word [VIRQLoc],107h
|
||||||
|
.not106
|
||||||
cmp byte[HIRQNextExe],1
|
cmp byte[HIRQNextExe],1
|
||||||
je .nohirq
|
je .nohirq
|
||||||
ret
|
ret
|
||||||
@@ -1602,6 +1606,10 @@ reg4209w:
|
|||||||
reg420Aw:
|
reg420Aw:
|
||||||
and al,01h
|
and al,01h
|
||||||
mov [VIRQLoc+1],al
|
mov [VIRQLoc+1],al
|
||||||
|
cmp word [VIRQLoc],106h
|
||||||
|
jne .not106
|
||||||
|
mov word [VIRQLoc],107h
|
||||||
|
.not106
|
||||||
cmp byte[HIRQNextExe],1
|
cmp byte[HIRQNextExe],1
|
||||||
je .nohirq
|
je .nohirq
|
||||||
ret
|
ret
|
||||||
|
|||||||
Reference in New Issue
Block a user