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 higher-resolution 4 # graphics mode. 5 # 6 # To build a disk image: 7 # ./translate_subx_baremetal baremetal/ex2.subx # emits disk.img 8 # To run: 9 # qemu-system-i386 disk.img 10 # Or: 11 # bochs -f baremetal/boot.bochsrc # boot.bochsrc loads disk.img 12 13 main: 14 e9/jump main/disp32 15 16 # vim:ft=subx