about summary refs log tree commit diff stats
path: root/subx/examples/ex4.subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx/examples/ex4.subx')
-rw-r--r--subx/examples/ex4.subx18
1 files changed, 9 insertions, 9 deletions
diff --git a/subx/examples/ex4.subx b/subx/examples/ex4.subx
index 946a4810..3c4f8949 100644
--- a/subx/examples/ex4.subx
+++ b/subx/examples/ex4.subx
@@ -11,28 +11,28 @@
 
   # read(stdin, x, 1)
     # fd = 0 (stdin)
-  bb/copy                         .               .             .           .             .           .           .               0/imm32           # copy to EBX
+  bb/copy-to-EBX  0/imm32
     # initialize x (location to write result to)
-  b9/copy                         .               .             .           .             .           .           .               x/imm32           # copy to ECX
+  b9/copy-to-ECX  x/imm32
     # size = 1 character
-  ba/copy                         .               .             .           .             .           .           .               1/imm32           # copy to EDX
+  ba/copy-to-EDX  1/imm32
     # read(fd, x, size)
-  b8/copy                         .               .             .           .             .           .           .               3/imm32/read      # copy to EAX
+  b8/copy-to-EAX  3/imm32/read
   cd/syscall  0x80/imm8
 
   # write(stdout, x, 1)
     # fd = 1 (stdout)
-  bb/copy                         .               .             .           .             .           .           .               1/imm32           # copy to EBX
+  bb/copy-to-EBX  1/imm32
     # initialize x (location to read from)
-  b9/copy                         .               .             .           .             .           .           .               x/imm32           # copy to ECX
+  b9/copy-to-ECX  x/imm32
     # size = 1 character
-  ba/copy                         .               .             .           .             .           .           .               1/imm32           # copy to EDX
+  ba/copy-to-EDX  1/imm32
     # write(fd, x, size)
-  b8/copy                         .               .             .           .             .           .           .               4/imm32/write     # copy to EAX
+  b8/copy-to-EAX  4/imm32/write
   cd/syscall  0x80/imm8
 
   # exit(EBX)
-  b8/copy                         .               .             .           .             .           .           .               1/imm32/exit      # copy to EAX
+  b8/copy-to-EAX  1/imm32/exit
   cd/syscall  0x80/imm8
 
 == data