about summary refs log tree commit diff stats
path: root/ex1.subx
blob: 0cd024fe8ade04f77d0868a4881bb1257f8e0b30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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 boot.hex 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:
  {
    eb/jump loop/disp8
  }

# vim:ft=subx