Updated videomodes to support values > 19

This commit is contained in:
zsknight
2001-05-17 00:59:29 +00:00
parent b02ef7ebfd
commit 94cd9994d1

View File

@@ -1446,12 +1446,20 @@ NEWSYM getcfg
ret ret
.videob .videob
cmp byte[.stringb],'1' cmp byte[.stringb],'1'
jne .novideo jne .novideo2
mov al,[.stringb+1] mov al,[.stringb+1]
sub al,38 sub al,38
mov [cvidmode],al mov [cvidmode],al
mov [cfgcvidmode],al mov [cfgcvidmode],al
ret ret
.novideo2
cmp byte[.stringb],'2'
jne .novideo
mov al,[.stringb+1]
sub al,28
mov [cvidmode],al
mov [cfgcvidmode],al
ret
.getexecute .getexecute
cmp dword[.strlenb],0 cmp dword[.strlenb],0