about summary refs log tree commit diff stats
path: root/subx/examples/ex8.subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx/examples/ex8.subx')
-rw-r--r--subx/examples/ex8.subx18
1 files changed, 9 insertions, 9 deletions
diff --git a/subx/examples/ex8.subx b/subx/examples/ex8.subx
index fd7929f4..410dfe08 100644
--- a/subx/examples/ex8.subx
+++ b/subx/examples/ex8.subx
@@ -15,18 +15,18 @@
 # Locals start from ESP-4 downwards.
 
 == code
-#   instruction                     effective address                                                   operand     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
+#   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
 
-    # prolog
+    # . prolog
     89/copy                         3/mod/direct    5/rm32/EBP    .           .             .           4/r32/ESP   .               .                 # copy ESP to EBP
-    # call ascii-length(argv[1])
-    # push args
+    # . . call ascii-length(argv[1])
+    # . . push args
     ff          6/subop/push        1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none  .           .           0x8/disp8       .                 # push *(EBP+8)
-    # call
+    # . . call
     e8/call  ascii-length/disp32
-    # discard args
+    # . . discard args
     81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               4/imm32           # add to ESP
 
     # exit(EAX)
@@ -55,4 +55,4 @@ $ascii-length-ret:
     # return (result in EAX)
     c3/return
 
-# vim:nowrap:textwidth=0
+# . . vim:nowrap:textwidth=0