Skip to content
Snippets Groups Projects
Commit cf9e19d6 authored by Stephen D's avatar Stephen D
Browse files

Changed mode

parent 420fb5b5
Branches master
No related tags found
No related merge requests found
......@@ -12,9 +12,9 @@
;; ^^^^^Don't trust these! They're overwritten at the moment.^^^^^
vbe_set_mode:
mov ax, 1024
mov bx, 768
mov cl, 16
mov ax, 1280
mov bx, 600
mov cl, 24
mov [width], ax
mov [height], bx
mov [bpp], cl
......@@ -75,15 +75,15 @@ find_mode:
mov ax, [width]
cmp ax, [VBE_INFO + 0x12] ;Width
;//jne .next_mode
jg .next_mode
mov ax, [height]
cmp ax, [VBE_INFO + 0x14] ;Height
;//jne .next_mode
jg .next_mode
mov al, [bpp]
cmp al, [VBE_INFO + 0x19] ;BPP
jne .next_mode
jg .next_mode
; If we make it here, we've found the correct mode!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment