From 490b26d0614f685990dcc9225c7826a34de77b48 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 27 Dec 2020 10:57:44 -0800 Subject: 7426 --- html/baremetal/ex1.hex.html | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) (limited to 'html/baremetal/ex1.hex.html') diff --git a/html/baremetal/ex1.hex.html b/html/baremetal/ex1.hex.html index bdfb696f..5fc1129c 100644 --- a/html/baremetal/ex1.hex.html +++ b/html/baremetal/ex1.hex.html @@ -53,22 +53,23 @@ if ('onhashchange' in window) {
  1 # The simplest possible program: just an infinite loop.
  2 # All is well if your computer clears screen and hangs without restarting.
- 3 # On an emulator the window may get bigger to accomodate the 1280x1024 graphics mode.
- 4 #
- 5 # To convert to a disk image, first prepare a realistically sized disk image:
- 6 #   dd if=/dev/zero of=disk.img count=20160  # 512-byte sectors, so 10MB
- 7 # Load the disk image:
- 8 #   cat baremetal/boot.hex baremetal/ex1.hex  |./bootstrap run apps/hex  > a.bin
- 9 #   dd if=a.bin of=disk.img conv=notrunc
-10 # To run:
-11 #   qemu-system-i386 disk.img
-12 # Or:
-13 #   bochs -f apps/boot.bochsrc  # boot.bochsrc loads disk.img
-14 
-15 # address 0x8000
-16 e9 fb ff ff ff  # jump to address 0x8000
-17 
-18 # vim:ft=subx
+ 3 # On an emulator the window may get bigger to accomodate the higher-resolution
+ 4 # graphics mode.
+ 5 #
+ 6 # To convert to a disk image, first prepare a realistically sized disk image:
+ 7 #   dd if=/dev/zero of=disk.img count=20160  # 512-byte sectors, so 10MB
+ 8 # Load the disk image:
+ 9 #   cat baremetal/boot.hex baremetal/ex1.hex  |./bootstrap run apps/hex  > a.bin
+10 #   dd if=a.bin of=disk.img conv=notrunc
+11 # To run:
+12 #   qemu-system-i386 disk.img
+13 # Or:
+14 #   bochs -f apps/boot.bochsrc  # boot.bochsrc loads disk.img
+15 
+16 # main:  (address 0x8800)
+17 e9 fb ff ff ff  # jump to address 0x8800
+18 
+19 # vim:ft=subx
 
-- cgit 1.4.1-2-gfad0