about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-03-14 22:31:42 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-03-14 22:31:42 -0700
commit0e5d7e06248c22f663ce6d65e88676dba12f5a48 (patch)
treefce97c2a01918440380b561c6349d426039bed3d
parent97c0176a1860fbdc122ff306d9ac3d351851ef7e (diff)
downloadmu-0e5d7e06248c22f663ce6d65e88676dba12f5a48.tar.gz
.
-rw-r--r--boot.subx14
1 files changed, 8 insertions, 6 deletions
diff --git a/boot.subx b/boot.subx
index 8ba735b0..f43bac65 100644
--- a/boot.subx
+++ b/boot.subx
@@ -146,15 +146,17 @@
                               # 0x4000 bit = configure linear frame buffer in Bochs emulator; hopefully this doesn't hurt anything when running natively
   cd/syscall 0x10/imm8/bios-video-services
 
-== data
-
   # load information for the (hopefully) current video mode
   # mostly just for the address to the linear frame buffer
-  b4 4f  # ah <- 4f (VBE)
-  b0 01  # al <- 01 (get video mode info)
-  b9 07 01  # cx <- 0x0107 (mode we requested)
+  b4/copy-to-ah 0x4f/imm8  # VBE commands
+  b0/copy-to-al 1/imm8  # get video mode info
+  b9/copy-to-cx 0x0107/imm16  # mode we requested TODO: incorrect
+== data
   bf 00 81  # di <- 0x8100 (video mode info) [label]
-  cd 10
+== code
+  cd/syscall 0x10/imm8/bios-video-services
+
+== data
 
   # switch to 32-bit mode
   0f 01 16  # lgdt 00/mod/indirect 010/subop 110/rm/use-disp16