Moved grayscale toggle code from C to ASM; enabled grayscale toggle in dos port

This commit is contained in:
pagefault
2001-07-29 23:53:50 +00:00
parent aab72c94a0
commit 818539feae
7 changed files with 22 additions and 18 deletions

View File

@@ -132,6 +132,7 @@ EXTSYM UDPDisableMode,UDPEnableMode,UDPClearVars,UDPWait1Sec
EXTSYM WinErrorA2,WinErrorB2,WinErrorC2
EXTSYM ZsnesPage
EXTSYM GetLocalTime
EXTSYM V8Mode,GrayscaleMode
NEWSYM WinIntRFAsmStart
@@ -808,6 +809,12 @@ NEWSYM InitPreGame ; Executes before starting/continuing a game
call initwinvideo
popad
mov al,[GrayscaleMode]
cmp al,[V8Mode]
je .nochangemode
xor byte[V8Mode],1
.nochangemode
mov byte[RaisePitch],1
pushad
call AdjustFrequency