From cba9eec34b205c760f16f7171b58bfc906723b72 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 18 Feb 2021 21:27:39 -0500 Subject: condensing vbe attribute checks in bootloader --- src/boot.asm | 11 +++-------- 1 file 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 -- cgit v1.2.3