From 12de6c5b74c91e9685af32c2a26156c69c70b8ee Mon Sep 17 00:00:00 2001 From: Tom-on64 Date: Thu, 2 May 2024 11:42:09 +0200 Subject: [PATCH] Finished gfx mode selection thing --- src/stage1.asm | 3 +++ src/stage2.asm | 12 +----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/stage1.asm b/src/stage1.asm index 9422e46..4b0fa08 100644 --- a/src/stage1.asm +++ b/src/stage1.asm @@ -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 diff --git a/src/stage2.asm b/src/stage2.asm index 4a2ffbb..289ce56 100644 --- a/src/stage2.asm +++ b/src/stage2.asm @@ -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