Finished gfx mode selection thing

This commit is contained in:
2024-05-02 11:42:09 +02:00
parent 7489f70f74
commit 12de6c5b74
2 changed files with 4 additions and 11 deletions
+3
View File
@@ -9,6 +9,9 @@
start:
mov [driveNum], dl ; Store the drive number
xor ax, ax
mov es, ax
mov ds, ax
; Clear screen
mov ax, 0x03
+1 -11
View File
@@ -153,17 +153,6 @@ vbeSetup:
cmp al, [modeInfoBlock.bpp]
jne .nextMode
mov ax, [vbeInfoBlock.videoModePtr]
ror ax, 8
call printHex
ror ax, 8
call printHex
mov ax, [vbeInfoBlock.videoModePtr+2]
ror ax, 8
call printHex
ror ax, 8
call printHex
; Set VBE mode
mov ax, 0x4f02
mov bx, [mode]
@@ -382,6 +371,7 @@ CODE_SEG equ GDT.codeDescriptor - GDT.start
DATA_SEG equ GDT.dataDescriptor - GDT.start
;; VBE Stuff
;; !! IF YOU WANT TO SELECT ANY VALUE IN THE SETUP, SET THESE TO ZERO !!
width: dw 0
height: dw 0
bpp: db 0