Cleaned up the VGA video mode source code.
This commit is contained in:
@@ -39,7 +39,11 @@ NEWSYM res480, resb 1
|
|||||||
SECTION .text
|
SECTION .text
|
||||||
|
|
||||||
NEWSYM dosinitvideo2
|
NEWSYM dosinitvideo2
|
||||||
; jmp dosinitvideo.noaddsub
|
cmp byte[cvidmode],2
|
||||||
|
jne .nomodeq
|
||||||
|
jmp dosinitvideo.initmodeq
|
||||||
|
.nomodeq
|
||||||
|
ret
|
||||||
|
|
||||||
;*******************************************************
|
;*******************************************************
|
||||||
; InitVideo
|
; InitVideo
|
||||||
@@ -122,7 +126,7 @@ NEWSYM dosinitvideo
|
|||||||
.initmodeq
|
.initmodeq
|
||||||
%ifdef __MSDOS__
|
%ifdef __MSDOS__
|
||||||
cmp byte[scanlines],1
|
cmp byte[scanlines],1
|
||||||
jnz .noscanlines
|
jne .noscanlines
|
||||||
jmp .scanlines
|
jmp .scanlines
|
||||||
.noscanlines
|
.noscanlines
|
||||||
SetVGAMode .Mode256x256c
|
SetVGAMode .Mode256x256c
|
||||||
|
|||||||
Reference in New Issue
Block a user