diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-12-26 22:01:45 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-12-26 22:01:45 -0800 |
commit | 0243ee4e834e4118e3c2eadc68d36f8e62d94d28 (patch) | |
tree | 97195c3e81c628705f796268eb2ea0fb54e421c7 /baremetal | |
parent | 9ef034fde8a53966c30bd7d777402e031cf7750b (diff) | |
download | mu-0243ee4e834e4118e3c2eadc68d36f8e62d94d28.tar.gz |
7417 - baremetal: drawing on LFB in Bochs
Diffstat (limited to 'baremetal')
-rw-r--r-- | baremetal/boot.hex | 3 | ||||
-rw-r--r-- | baremetal/ex2.hex | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/baremetal/boot.hex b/baremetal/boot.hex index 4c4e3044..60c4f81f 100644 --- a/baremetal/boot.hex +++ b/baremetal/boot.hex @@ -96,7 +96,8 @@ # adjust video mode b4 4f # ah <- 4f (VBE) b0 02 # al <- 02 (set video mode) - bb 07 01 # bx <- 0x0107 (graphics 1280x1024x256) + bb 07 41 # bx <- 0x0107 (graphics 1280x1024x256 + # 0x4000 bit = configure linear frame buffer in Bochs emulator; hopefully this doesn't hurt anything when running natively) # fallback: 0x0101 (640x480x256) # for other choices see http://www.ctyme.com/intr/rb-0069.htm cd 10 # int 10h, Vesa BIOS extensions diff --git a/baremetal/ex2.hex b/baremetal/ex2.hex index 3e3df877..7708b59f 100644 --- a/baremetal/ex2.hex +++ b/baremetal/ex2.hex @@ -7,7 +7,7 @@ # dd if=a.bin of=disk.img conv=notrunc # To run: # qemu-system-i386 disk.img -# Or: (temporarily doesn't work) +# Or: # bochs -f apps/boot.bochsrc # boot.bochsrc loads disk.img # main: (address 0x8000) |