diff options
Diffstat (limited to 'ex1.subx')
-rw-r--r-- | ex1.subx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ex1.subx b/ex1.subx new file mode 100644 index 00000000..8a5dfdb7 --- /dev/null +++ b/ex1.subx @@ -0,0 +1,18 @@ +# The simplest possible program: just an infinite loop. +# All is well if your computer clears screen and hangs without restarting. +# On an emulator the window may get bigger to accomodate the higher-resolution +# graphics mode. +# +# To build a disk image: +# ./translate_subx_baremetal baremetal/ex2.subx # emits disk.img +# To run: +# qemu-system-i386 disk.img +# Or: +# bochs -f baremetal/boot.bochsrc # boot.bochsrc loads disk.img + +== code + +main: + e9/jump main/disp32 + +# vim:ft=subx |