games fix

This commit is contained in:
z_demo_z
2001-08-15 17:11:53 +00:00
parent 6321a87bbc
commit 2b37c39809
5 changed files with 18 additions and 6 deletions

View File

@@ -1306,7 +1306,7 @@ COPemulmode
%endmacro
%macro RTIMacro 0
mov byte[doirqnext],0
; mov byte[doirqnext],0
cmp byte[nmistatus],3
jne .nodis658162
test byte[curexecstate],01h

View File

@@ -1305,7 +1305,7 @@ COPemulmode
%endmacro
%macro RTIMacro 0
mov byte[doirqnext],0
; mov byte[doirqnext],0
cmp byte[nmistatus],3
jne .nodis658162
test byte[curexecstate],01h

View File

@@ -1319,7 +1319,7 @@ COPemulmode
%endmacro
%macro RTIMacro 0
mov byte[doirqnext],0
; mov byte[doirqnext],0
cmp byte[nmistatus],3
jne near .nodis658162
test byte[curexecstate],01h

View File

@@ -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 latchx, dw 0 ; latched x value
NEWSYM latchy, dw 0 ; latched y value
NEWSYM latchxr, db 1 ; low or high byte read for x value
NEWSYM latchyr, db 1 ; low or high byte read for y value
NEWSYM latchxr, db 0 ; low or high byte read for x value
NEWSYM latchyr, db 0 ; low or high byte read for y value
NEWSYM frskipper, db 0 ; used to control frame skipping
NEWSYM winl1, db 0 ; window 1 left position
NEWSYM winr1, db 0 ; window 1 right position
@@ -673,6 +673,8 @@ reg213Cr:
ret
.highv
mov al,byte[latchx+1]
and al,1
or al,byte[latchx]
mov byte[latchxr],0
ret
@@ -684,7 +686,9 @@ reg213Dr:
mov byte[latchyr],1
ret
.highv
mov al,byte[latchy+1]
mov al,byte[latchy]
and al,0FEh
or al,byte[latchy+1]
mov byte[latchyr],0
ret

View File

@@ -1585,6 +1585,10 @@ reg4208w:
reg4209w:
mov [VIRQLoc],al
; mov bx,[curypos]
cmp word [VIRQLoc],106h
jne .not106
mov word [VIRQLoc],107h
.not106
cmp byte[HIRQNextExe],1
je .nohirq
ret
@@ -1602,6 +1606,10 @@ reg4209w:
reg420Aw:
and al,01h
mov [VIRQLoc+1],al
cmp word [VIRQLoc],106h
jne .not106
mov word [VIRQLoc],107h
.not106
cmp byte[HIRQNextExe],1
je .nohirq
ret