about summary refs log tree commit diff stats
path: root/subx/examples/ex4.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-01 15:35:56 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-01 15:53:44 -0700
commitd25e51dc0fdd154644ff4ddeb15d2ea436ea943b (patch)
tree30f7e33c52634f4e3db42d76eb50cbb4f6aba1bc /subx/examples/ex4.subx
parentf872f7c726c45b96ee5d3a899915fc3bde26f942 (diff)
downloadmu-d25e51dc0fdd154644ff4ddeb15d2ea436ea943b.tar.gz
4644
Diffstat (limited to 'subx/examples/ex4.subx')
-rw-r--r--subx/examples/ex4.subx14
1 files changed, 7 insertions, 7 deletions
diff --git a/subx/examples/ex4.subx b/subx/examples/ex4.subx
index 9864b49f..965acd22 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 0 to EBX
+  bb/copy                                                                                                                         0/imm32           # copy to EBX
     # initialize x (location to write result to)
   b9/copy                                                                                                                         x/imm32           # copy to ECX
     # size = 1 character
-  ba/copy                                                                                                                         1/imm32           # copy 1 to EDX
+  ba/copy                                                                                                                         1/imm32           # copy to EDX
     # read(fd, x, size)
-  b8/copy                                                                                                                         3/imm32/read      # copy 3 to EAX
+  b8/copy                                                                                                                         3/imm32/read      # copy to EAX
   cd/syscall  0x80/imm8
 
   # write(stdout, x, 1)
     # fd = 1 (stdout)
-  bb/copy                                                                                                                         1/imm32           # copy 1 to EBX
+  bb/copy                                                                                                                         1/imm32           # copy to EBX
     # initialize x (location to read from)
   b9/copy                                                                                                                         x/imm32           # copy to ECX
     # size = 1 character
-  ba/copy                                                                                                                         1/imm32           # copy 1 to EDX
+  ba/copy                                                                                                                         1/imm32           # copy to EDX
     # write(fd, x, size)
-  b8/copy                                                                                                                         4/imm32/write     # copy 4 to EAX
+  b8/copy                                                                                                                         4/imm32/write     # copy to EAX
   cd/syscall  0x80/imm8
 
   # exit(EBX)
-  b8/copy                                                                                                                         1/imm32/exit      # copy 1 to EAX
+  b8/copy                                                                                                                         1/imm32/exit      # copy to EAX
   cd/syscall  0x80/imm8
 
 == data