about summary refs log tree commit diff stats
path: root/subx/051test.subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx/051test.subx')
-rw-r--r--subx/051test.subx22
1 files changed, 11 insertions, 11 deletions
diff --git a/subx/051test.subx b/subx/051test.subx
index faa5257c..6cc9c541 100644
--- a/subx/051test.subx
+++ b/subx/051test.subx
@@ -5,7 +5,7 @@
 # 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
+check-ints-equal:  # (a : int, b : int, msg : (address array byte)) -> boolean
   # prolog
   55/push-EBP
   89/copy                         3/mod/direct    5/rm32/EBP    .           .             .           4/r32/ESP   .               .                 # copy ESP to EBP
@@ -17,37 +17,37 @@ check_ints_equal:  # (a : int, b : int, msg : (address array byte)) -> boolean
   8b/copy                         1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none  .           3/r32/EBX   0xc/disp8       .                 # copy *(EBP+12) to EBX
   # if EAX == b/EBX
   39/compare                      3/mod/direct    0/rm32/EAX    .           .             .           3/r32/EBX   .               .                 # compare EAX and EBX
-  75/jump-if-unequal  $check_ints_equal:else/disp8
+  75/jump-if-unequal  $check-ints-equal:else/disp8
     # print('.')
       # push args
   68/push  "."/imm32
       # call
-  e8/call  write_stderr/disp32
+  e8/call  write-stderr/disp32
       # discard arg
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               4/imm32           # add to ESP
     # return
-  eb/jump  $check_ints_equal:end/disp8
+  eb/jump  $check-ints-equal:end/disp8
   # else:
-$check_ints_equal:else:
+$check-ints-equal:else:
   # copy msg into ECX
   8b/copy                         1/mod/*+disp8   4/rm32/sib    5/base/EBP  4/index/none  .           1/r32/ECX   0x10/disp8       .                # copy *(EBP+16) to ECX
     # print(ECX)
       # push args
   51/push-ECX
       # call
-  e8/call  write_stderr/disp32
+  e8/call  write-stderr/disp32
       # discard arg
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               4/imm32           # add to ESP
     # print newline
       # push args
   68/push  Newline/imm32
       # call
-  e8/call  write_stderr/disp32
+  e8/call  write-stderr/disp32
       # discard arg
   81          0/subop/add         3/mod/direct    4/rm32/ESP    .           .             .           .           .               4/imm32           # add to ESP
-    # increment Num_test_failures
-  ff          0/subop/increment   0/mod/indirect  5/rm32/.disp32            .             .           .           Num_test_failures/disp32          # increment *Num_test_failures
-$check_ints_equal:end:
+    # increment Num-test-failures
+  ff          0/subop/increment   0/mod/indirect  5/rm32/.disp32            .             .           .           Num-test-failures/disp32          # increment *Num-test-failures
+$check-ints-equal:end:
   # restore registers
   5b/pop-to-EBX
   59/pop-to-ECX
@@ -64,7 +64,7 @@ Newline:
   # data
   0a/newline
 
-Num_test_failures:
+Num-test-failures:
   00 00 00 00
 
 # vim:nowrap:textwidth=0