about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--subx/050write_stderr.subx6
-rw-r--r--subx/051test.subx6
-rw-r--r--subx/052kernel_string_equal.subx2
3 files changed, 14 insertions, 0 deletions
diff --git a/subx/050write_stderr.subx b/subx/050write_stderr.subx
index d6f4784d..b595baec 100644
--- a/subx/050write_stderr.subx
+++ b/subx/050write_stderr.subx
@@ -1,5 +1,9 @@
 == 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
+
 write_stderr:  # s : (address array byte) -> <void>
   # prolog
   55/push-EBP
@@ -30,3 +34,5 @@ write_stderr:  # s : (address array byte) -> <void>
   89/copy                         3/mod/direct    4/rm32/ESP    .           .             .           5/r32/EBP   .               .                 # copy EBP to ESP
   5d/pop-to-EBP
   c3/return
+
+# vim:ft=subx:nowrap:tw&
diff --git a/subx/051test.subx b/subx/051test.subx
index 8edcee49..c8c4b89c 100644
--- a/subx/051test.subx
+++ b/subx/051test.subx
@@ -1,5 +1,9 @@
 == 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
+
 # print msg to stderr if a != b, otherwise print "."
 check_ints_equal:  # (a : int, b : int, msg : (address array byte)) -> boolean
   # prolog
@@ -57,3 +61,5 @@ Newline:
   01 00 00 00
   # data
   0a/newline
+
+# vim:ft=subx:nowrap:tw&
diff --git a/subx/052kernel_string_equal.subx b/subx/052kernel_string_equal.subx
index 59bf56c5..1a8a3b64 100644
--- a/subx/052kernel_string_equal.subx
+++ b/subx/052kernel_string_equal.subx
@@ -256,3 +256,5 @@ Null_kernel_string:
   00/null
 Abc_kernel_string:
   41/A 62/b 63/c 00/null
+
+# vim:ft=subx:nowrap:tw&