diff options
author | Benji Dial <benji6283@gmail.com> | 2021-02-18 21:27:39 -0500 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-02-18 21:27:39 -0500 |
commit | cba9eec34b205c760f16f7171b58bfc906723b72 (patch) | |
tree | 8860766debf846224704b336dfb90fc39a9b30ff /src | |
parent | 82d74f17f40abfd30030da78606ceffedf4a9c20 (diff) | |
download | portland-os-cba9eec34b205c760f16f7171b58bfc906723b72.tar.gz |
condensing vbe attribute checks in bootloader
Diffstat (limited to 'src')
-rw-r--r-- | src/boot.asm | 11 |
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 |