From 562476d7509a17f6155dc8bead6bd2565fde48cb Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 29 Dec 2020 20:50:11 -0800 Subject: 7467 --- baremetal/ex2.hex | 3 +++ baremetal/ex2.subx | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'baremetal') 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 -- cgit 1.4.1-2-gfad0