about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-09-20 21:38:51 -0700
committerKartik Agaram <vc@akkartik.com>2018-09-20 21:38:51 -0700
commit3fe714d3d463d2040f2089214e56d7825daf4c06 (patch)
tree525788e3a9fea4299823c947094f32fa89bffecc /subx
parent3364d19cd1fb854846e76b75abce081b5cdcf220 (diff)
downloadmu-3fe714d3d463d2040f2089214e56d7825daf4c06.tar.gz
4562
Diffstat (limited to 'subx')
-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