Cleaned up the VGA video mode source code.

This commit is contained in:
stainless
2001-09-08 22:54:03 +00:00
parent f2e1bcf08f
commit 08d5c6d5af

View File

@@ -39,7 +39,11 @@ NEWSYM res480, resb 1
SECTION .text
NEWSYM dosinitvideo2
; jmp dosinitvideo.noaddsub
cmp byte[cvidmode],2
jne .nomodeq
jmp dosinitvideo.initmodeq
.nomodeq
ret
;*******************************************************
; InitVideo
@@ -122,7 +126,7 @@ NEWSYM dosinitvideo
.initmodeq
%ifdef __MSDOS__
cmp byte[scanlines],1
jnz .noscanlines
jne .noscanlines
jmp .scanlines
.noscanlines
SetVGAMode .Mode256x256c