diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-12-29 20:50:11 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-12-29 20:50:11 -0800 |
commit | 562476d7509a17f6155dc8bead6bd2565fde48cb (patch) | |
tree | b4c415c9a7480414e0a7aaee1b8e3e17a7a54d01 | |
parent | 6b11049d1367b10dac44627c7450b2238638cbca (diff) | |
download | mu-562476d7509a17f6155dc8bead6bd2565fde48cb.tar.gz |
7467
-rw-r--r-- | baremetal/ex2.hex | 3 | ||||
-rw-r--r-- | baremetal/ex2.subx | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/baremetal/ex2.hex b/baremetal/ex2.hex index 46ff3a7a..52150b7f 100644 --- a/baremetal/ex2.hex +++ b/baremetal/ex2.hex @@ -9,6 +9,9 @@ # qemu-system-i386 disk.img # Or: # bochs -f baremetal/boot.bochsrc # boot.bochsrc loads disk.img +# +# Expected output: +# html/baremetal.png # main: (address 0x8800) diff --git a/baremetal/ex2.subx b/baremetal/ex2.subx index 19fc3ba3..5f007327 100644 --- a/baremetal/ex2.subx +++ b/baremetal/ex2.subx @@ -6,13 +6,16 @@ # qemu-system-i386 disk.img # Or: # bochs -f baremetal/boot.bochsrc # boot.bochsrc loads disk.img +# +# Expected output: +# html/baremetal.png # main: (address 0x8800) == code # ecx <- start of video memory -8b/-> 0/mod/indirect 5/rm32/use-disp32 0x7f28/disp32/video-memory 1/r32/ecx +8b/-> *0x7f28 1/r32/ecx # eax <- final pixel of video memory 8d/copy-address *(ecx + 0x0bffff) 0/r32/eax # 0xbffff = 1024*768 - 1 |