mu/ex1.subx

21 lines
493 B
Plaintext
Raw Normal View History

2020-12-30 01:34:43 +00:00
# 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.
#
2020-12-30 02:56:21 +00:00
# To build a disk image:
2021-03-15 04:41:47 +00:00
# ./translate_subx boot.subx ex2.subx # emits disk.img
2020-12-30 01:34:43 +00:00
# To run:
# qemu-system-i386 disk.img
# Or:
2021-03-15 04:27:39 +00:00
# bochs -f baremetal/boot.bochsrc # boot.bochsrc loads disk.img
2020-12-30 01:34:43 +00:00
2021-01-14 05:41:45 +00:00
== code
2021-01-09 21:45:41 +00:00
main:
2021-03-15 04:14:10 +00:00
{
eb/jump loop/disp8
}
2020-12-30 01:34:43 +00:00
# vim:ft=subx