mirror of
https://github.com/Tom-on64/kern.git
synced 2026-11-03 18:22:22 +00:00
Finished gfx mode selection thing
This commit is contained in:
@@ -9,6 +9,9 @@
|
|||||||
|
|
||||||
start:
|
start:
|
||||||
mov [driveNum], dl ; Store the drive number
|
mov [driveNum], dl ; Store the drive number
|
||||||
|
xor ax, ax
|
||||||
|
mov es, ax
|
||||||
|
mov ds, ax
|
||||||
|
|
||||||
; Clear screen
|
; Clear screen
|
||||||
mov ax, 0x03
|
mov ax, 0x03
|
||||||
|
|||||||
+1
-11
@@ -153,17 +153,6 @@ vbeSetup:
|
|||||||
cmp al, [modeInfoBlock.bpp]
|
cmp al, [modeInfoBlock.bpp]
|
||||||
jne .nextMode
|
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
|
; Set VBE mode
|
||||||
mov ax, 0x4f02
|
mov ax, 0x4f02
|
||||||
mov bx, [mode]
|
mov bx, [mode]
|
||||||
@@ -382,6 +371,7 @@ CODE_SEG equ GDT.codeDescriptor - GDT.start
|
|||||||
DATA_SEG equ GDT.dataDescriptor - GDT.start
|
DATA_SEG equ GDT.dataDescriptor - GDT.start
|
||||||
|
|
||||||
;; VBE Stuff
|
;; VBE Stuff
|
||||||
|
;; !! IF YOU WANT TO SELECT ANY VALUE IN THE SETUP, SET THESE TO ZERO !!
|
||||||
width: dw 0
|
width: dw 0
|
||||||
height: dw 0
|
height: dw 0
|
||||||
bpp: db 0
|
bpp: db 0
|
||||||
|
|||||||
Reference in New Issue
Block a user