summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-02-18 21:27:39 -0500
committerBenji Dial <benji6283@gmail.com>2021-02-18 21:27:39 -0500
commitcba9eec34b205c760f16f7171b58bfc906723b72 (patch)
tree8860766debf846224704b336dfb90fc39a9b30ff
parent82d74f17f40abfd30030da78606ceffedf4a9c20 (diff)
downloadportland-os-cba9eec34b205c760f16f7171b58bfc906723b72.tar.gz
condensing vbe attribute checks in bootloader
-rw-r--r--src/boot.asm11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/boot.asm b/src/boot.asm
index c19534e..74a3e5e 100644
--- a/src/boot.asm
+++ b/src/boot.asm
@@ -113,15 +113,10 @@ vbe_loop:
int 0x10
mov al, byte [di]
+ not al
- test al, 0x01
- jz vbe_loop
-
- test al, 0x10
- jz vbe_loop
-
- test al, 0x80
- jz vbe_loop
+ test al, 0x9a
+ jnz vbe_loop
mov dx, word [di + 0x14];height
cmp dx, max_height