about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--subx/examples/ex4.subx6
-rw-r--r--subx/examples/ex5.subx6
-rw-r--r--subx/examples/ex6.subx4
3 files changed, 8 insertions, 8 deletions
diff --git a/subx/examples/ex4.subx b/subx/examples/ex4.subx
index f018092b..bb0525e4 100644
--- a/subx/examples/ex4.subx
+++ b/subx/examples/ex4.subx
@@ -17,7 +17,7 @@
     # size = 1 character
   ba/copy                                                                                                                         1/imm32           # copy 1 to EDX
     # read(fd, x, size)
-  b8/copy                                                                                                                         3/imm32           # copy 3 to EAX
+  b8/copy                                                                                                                         3/imm32/read      # copy 3 to EAX
   cd/syscall                                                                                                                      0x80/imm8         # int 80h
 
   # write(stdout, x, 1)
@@ -28,11 +28,11 @@
     # size = 1 character
   ba/copy                                                                                                                         1/imm32           # copy 1 to EDX
     # write(fd, x, size)
-  b8/copy                                                                                                                         4/imm32           # copy 4 to EAX
+  b8/copy                                                                                                                         4/imm32/write     # copy 4 to EAX
   cd/syscall                                                                                                                      0x80/imm8         # int 80h
 
   # exit(EBX)
-  b8/copy                                                                                                                         1/imm32           # copy 1 to EAX
+  b8/copy                                                                                                                         1/imm32/exit      # copy 1 to EAX
   cd/syscall                                                                                                                      0x80/imm8         # int 80h
 
 == data
diff --git a/subx/examples/ex5.subx b/subx/examples/ex5.subx
index a0bb9d48..cafad042 100644
--- a/subx/examples/ex5.subx
+++ b/subx/examples/ex5.subx
@@ -24,7 +24,7 @@
     # size = 1 character
   ba/copy                                                                                                                         1/imm32           # copy 1 to EDX
     # read(fd, x, size)
-  b8/copy                                                                                                                         3/imm32           # copy 3 to EAX
+  b8/copy                                                                                                                         3/imm32/read      # copy 3 to EAX
   cd/syscall                                                                                                                      0x80/imm8         # int 80h
 
   # write(stdout, x, 1)
@@ -35,11 +35,11 @@
     # size = 1 character
   ba/copy                                                                                                                         1/imm32           # copy 1 to EDX
     # write(fd, x, size)
-  b8/copy                                                                                                                         4/imm32           # copy 4 to EAX
+  b8/copy                                                                                                                         4/imm32/write     # copy 4 to EAX
   cd/syscall                                                                                                                      0x80/imm8         # int 80h
 
   # exit(EBX)
-  b8/copy                                                                                                                         1/imm32           # copy 1 to EAX
+  b8/copy                                                                                                                         1/imm32/exit      # copy 1 to EAX
   cd/syscall                                                                                                                      0x80/imm8         # int 80h
 
 # vim:ft=subx:nowrap
diff --git a/subx/examples/ex6.subx b/subx/examples/ex6.subx
index c2de9c19..92ad4c21 100644
--- a/subx/examples/ex6.subx
+++ b/subx/examples/ex6.subx
@@ -18,11 +18,11 @@
     # initialize size
   8b/copy                         0/mod/indirect  5/rm32/.disp32                                      2/r32/EDX   size/disp32                       # copy *size to EDX
     # write(fd, x, size)
-  b8/copy                                                                                                                         4/imm32           # copy 4 to EAX
+  b8/copy                                                                                                                         4/imm32/write     # copy 4 to EAX
   cd/syscall                                                                                                                      0x80/imm8         # int 80h
 
   # exit(EBX)
-  b8/copy                                                                                                                         1/imm32           # copy 1 to EAX
+  b8/copy                                                                                                                         1/imm32/exit      # copy 1 to EAX
   cd/syscall                                                                                                                      0x80/imm8         # int 80h
 
 == data