]> git.lizzy.rs Git - loadnothing.git/commitdiff
Initialize registers
authorHimbeerserverDE <himbeerserverde@gmail.com>
Sun, 11 Sep 2022 11:59:23 +0000 (13:59 +0200)
committerHimbeerserverDE <himbeerserverde@gmail.com>
Sun, 11 Sep 2022 11:59:23 +0000 (13:59 +0200)
Maybe this can run on real hardware now

boot.asm

index 22ce0ccf62def7fd452b4de7b42fc7d08ca00710..631f2b4a6dd4a28a54dd200b86f6317c0062f590 100644 (file)
--- a/boot.asm
+++ b/boot.asm
@@ -1,6 +1,12 @@
 [bits 16]
 [org 0x7c00]
 
+; Initialize registers
+xor ax, ax
+mov ds, ax
+mov es, ax
+mov bx, 0x8000
+
 call boot
 
 ; Print al register