about summary refs log tree commit diff stats
path: root/subx/examples/ex3.subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx/examples/ex3.subx')
-rw-r--r--subx/examples/ex3.subx6
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/examples/ex3.subx b/subx/examples/ex3.subx
index bbb6f1a7..8496b9c2 100644
--- a/subx/examples/ex3.subx
+++ b/subx/examples/ex3.subx
@@ -12,9 +12,9 @@
 # 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
   # result: EBX = 0
-  bb/copy                         .               .             .           .             .           .           .               0/imm32           # copy to EBX
+  bb/copy-to-EBX  0/imm32
   # counter: ECX = 1
-  b9/copy                         .               .             .           .             .           .           .               1/imm32           # copy to ECX
+  b9/copy-to-ECX  1/imm32
 
 $loop:
   # while (counter <= 10)
@@ -29,7 +29,7 @@ $loop:
 
 $exit:
   # exit(EBX)
-  b8/copy                         .               .             .           .             .           .           .               1/imm32           # copy to EAX
+  b8/copy-to-EAX  1/imm32
   cd/syscall  0x80/imm8
 
 # vim:nowrap:textwidth=0