about summary refs log tree commit diff stats
path: root/apps/ex13.subx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ex13.subx')
-rw-r--r--apps/ex13.subx25
1 files changed, 0 insertions, 25 deletions
diff --git a/apps/ex13.subx b/apps/ex13.subx
deleted file mode 100644
index b7e802fd..00000000
--- a/apps/ex13.subx
+++ /dev/null
@@ -1,25 +0,0 @@
-# Compare 3 and 3.
-#
-# To run:
-#   $ ./bootstrap translate init.linux apps/ex13.subx -o apps/ex13
-#   $ ./bootstrap run apps/ex13
-# Expected result:
-#   $ echo $?
-#   1
-
-== code
-#   instruction                     effective address                                                   register    displacement    immediate
-# . op          subop               mod             rm32          base        index         scale       r32
-# . 1-3 bytes   3 bits              2 bits          3 bits        3 bits      3 bits        2 bits      2 bits      0/1/2/4 bytes   0/1/2/4 bytes
-
-Entry:
-    b8/copy-to-eax  3/imm32
-    3d/compare-eax-and  3/imm32
-    0f 94/set-if-=                  3/mod/direct    3/rm32/ebx    .           .             .           .           .               .                 # set ebx to ZF
-    81 4/subop/and                  3/mod/direct    3/rm32/ebx    .           .             .           .           .               0xff/imm32        # AND with eax
-
-$exit:
-    # exit(ebx)
-    e8/call  syscall_exit/disp32
-
-# . . vim:nowrap:textwidth=0