Pause and Increment now operation (sorta).
This commit is contained in:
@@ -109,6 +109,7 @@ EXTSYM cpucycle,debstop,switchtovirqdeb,debstop3,switchtonmideb
|
|||||||
EXTSYM NetPlayNoMore,MovieSeekBehind
|
EXTSYM NetPlayNoMore,MovieSeekBehind
|
||||||
EXTSYM statefileloc,CHIPBATT,SaveSramData,BackupCVFrame,RestoreCVFrame,loadstate
|
EXTSYM statefileloc,CHIPBATT,SaveSramData,BackupCVFrame,RestoreCVFrame,loadstate
|
||||||
EXTSYM KeyInsrtChap,KeyNextChap,KeyPrevChap,MovieInsertChapter,MovieSeekAhead,ResetDuringMovie,MovieExitLoop
|
EXTSYM KeyInsrtChap,KeyNextChap,KeyPrevChap,MovieInsertChapter,MovieSeekAhead,ResetDuringMovie,MovieExitLoop
|
||||||
|
EXTSYM EMUPauseKey,INCRFrameKey
|
||||||
|
|
||||||
%ifdef __MSDOS__
|
%ifdef __MSDOS__
|
||||||
EXTSYM dssel
|
EXTSYM dssel
|
||||||
@@ -1505,6 +1506,7 @@ NEWSYM NumberOfOpcodes2, dd 0
|
|||||||
NEWSYM ChangeOps, dd 0
|
NEWSYM ChangeOps, dd 0
|
||||||
NEWSYM SFXProc, dd 0
|
NEWSYM SFXProc, dd 0
|
||||||
NEWSYM EMUPause, db 0
|
NEWSYM EMUPause, db 0
|
||||||
|
NEWSYM INCRFrame, db 0
|
||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
|
|
||||||
@@ -1912,6 +1914,22 @@ NEWSYM cpuover
|
|||||||
mov byte[pressed+eax],2
|
mov byte[pressed+eax],2
|
||||||
jmp exitloop
|
jmp exitloop
|
||||||
.nosavespckey
|
.nosavespckey
|
||||||
|
mov eax,dword[EMUPauseKey]
|
||||||
|
or eax,eax
|
||||||
|
jz .nopausekey
|
||||||
|
test byte[pressed+eax],1
|
||||||
|
jz .nopausekey
|
||||||
|
xor byte[EMUPause],1
|
||||||
|
mov byte[pressed+eax],2
|
||||||
|
.nopausekey
|
||||||
|
mov eax,dword[INCRFrameKey]
|
||||||
|
or eax,eax
|
||||||
|
jz .noincrframekey
|
||||||
|
test byte[pressed+eax],1
|
||||||
|
jz .noincrframekey
|
||||||
|
xor byte[INCRFrame],1
|
||||||
|
mov byte[pressed+eax],2
|
||||||
|
.noincrframekey
|
||||||
test byte[pressed+1],01h
|
test byte[pressed+1],01h
|
||||||
jnz near exitloop
|
jnz near exitloop
|
||||||
test byte[pressed+59],01h
|
test byte[pressed+59],01h
|
||||||
@@ -1977,9 +1995,15 @@ NEWSYM cpuover
|
|||||||
call ReadInputDevice
|
call ReadInputDevice
|
||||||
.noinputread
|
.noinputread
|
||||||
|
|
||||||
|
cmp byte[INCRFrame],1
|
||||||
|
jne .noframeincr
|
||||||
|
xor byte[INCRFrame],1
|
||||||
|
jmp .noemupause
|
||||||
|
.noframeincr
|
||||||
cmp byte[EMUPause],1
|
cmp byte[EMUPause],1
|
||||||
je .nonewgfx
|
je .nonewgfx
|
||||||
|
.noemupause
|
||||||
|
|
||||||
call UpdateRewind
|
call UpdateRewind
|
||||||
|
|
||||||
mov byte[NetQuit],0
|
mov byte[NetQuit],0
|
||||||
|
|||||||
Reference in New Issue
Block a user