about summary refs log tree commit diff stats
path: root/ex2.subx
diff options
context:
space:
mode:
Diffstat (limited to 'ex2.subx')
-rw-r--r--ex2.subx32
1 files changed, 0 insertions, 32 deletions
diff --git a/ex2.subx b/ex2.subx
deleted file mode 100644
index 3a1f770e..00000000
--- a/ex2.subx
+++ /dev/null
@@ -1,32 +0,0 @@
-# Test out the video mode by filling in the screen with pixels.
-#
-# To build a disk image:
-#   ./translate_subx boot.subx ex2.subx   # emits disk.img
-# To run:
-#   qemu-system-i386 disk.img
-# Or:
-#   bochs -f bochsrc                      # bochsrc loads disk.img
-
-== code
-
-Entry:
-  # ecx <- start of video memory
-  8b/-> *Video-memory-addr 1/r32/ecx
-
-  # eax <- final pixel of video memory
-  8d/copy-address *(ecx + 0x0bffff) 0/r32/eax  # 0xbffff = 1024*768 - 1
-
-  # for each pixel in video memory
-  {
-    39/compare %eax 1/r32/ecx
-    7c/jump-if-< break/disp8
-    # write its column number to it
-    88/byte<- *eax 0/r32/AL
-    48/decrement-eax
-    eb/jump loop/disp8
-  }
-
-  # hang indefinitely
-  {
-    eb/jump loop/disp8
-  }