about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx')
-rw-r--r--subx/053new_segment.subx12
-rw-r--r--subx/examples/ex6.subx2
2 files changed, 7 insertions, 7 deletions
diff --git a/subx/053new_segment.subx b/subx/053new_segment.subx
index 25efaf94..d12c94a0 100644
--- a/subx/053new_segment.subx
+++ b/subx/053new_segment.subx
@@ -27,13 +27,13 @@ new-segment:  # len : int -> address
     55/push-EBP
     89/copy                         3/mod/direct    5/rm32/EBP    .           .             .           4/r32/ESP   .               .                       # copy ESP to EBP
     53/push-EBX
-    # copy len to mmap-new-segment.len
-    # TODO: compute mmap-new-segment+4 before runtime
+    # copy len to _mmap-new-segment.len
+    # TODO: compute _mmap-new-segment+4 before runtime
     8b/copy                         1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none  .           0/r32/EAX   8/disp8         .                       # copy *(EBP+8) to EAX
-    bb/copy-to-EBX  mmap-new-segment/imm32
+    bb/copy-to-EBX  _mmap-new-segment/imm32
     89/copy                         1/mod/*+disp8   3/rm32/EBX    .           .             .           0/r32/EAX   4/disp8         .                       # copy EAX to *(EBX+4)
-    # mmap(mmap-new-segment)
-    bb/copy-to-EBX  mmap-new-segment/imm32
+    # mmap(_mmap-new-segment)
+    bb/copy-to-EBX  _mmap-new-segment/imm32
     b8/copy-to-EAX  0x5a/imm32/mmap
     cd/syscall  0x80/imm8
     # . epilog
@@ -45,7 +45,7 @@ new-segment:  # len : int -> address
 == data
 
 # various constants used here were found in the Linux sources (search for file mman-common.h)
-mmap-new-segment:  # type mmap_arg_struct
+_mmap-new-segment:  # type mmap_arg_struct
     # addr
     00 00 00 00  # null
     # len
diff --git a/subx/examples/ex6.subx b/subx/examples/ex6.subx
index 8b3637f6..c0bce83c 100644
--- a/subx/examples/ex6.subx
+++ b/subx/examples/ex6.subx
@@ -31,6 +31,6 @@ Size:  # size of string
     0e 00 00 00  # 14
 X:  # string to print
     48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21 0a       00
-# H  e  l  l  o  ,  ␣  w  o  r  l  d  !  newline  null
+#   H  e  l  l  o  ,  ␣  w  o  r  l  d  !  newline  null
 
 # . . vim:nowrap:textwidth=0