about summary refs log tree commit diff stats
path: root/examples/ex4.subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-08-26 11:55:26 -0700
committerKartik Agaram <vc@akkartik.com>2019-08-26 11:59:21 -0700
commit333525360b22f3d3ea31db46a4d2f1b4edbfebdb (patch)
treeed255f308542ba28a99d862d54d4992dcf749622 /examples/ex4.subx
parent22fb844ba4edf14eb85245a35f42e721658c4f8e (diff)
downloadmu-333525360b22f3d3ea31db46a4d2f1b4edbfebdb.tar.gz
5592 - switch register names to lowercase
Diffstat (limited to 'examples/ex4.subx')
-rw-r--r--examples/ex4.subx20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/ex4.subx b/examples/ex4.subx
index aebb2013..a8e0efaa 100644
--- a/examples/ex4.subx
+++ b/examples/ex4.subx
@@ -15,28 +15,28 @@ X:
 Entry:
 # syscall(read, stdin, X, 1)
 # . fd = 0 (stdin)
-bb/copy-to-EBX  0/imm32
+bb/copy-to-ebx  0/imm32
 # . data = X (location to write result to)
-b9/copy-to-ECX  X/imm32
+b9/copy-to-ecx  X/imm32
 # . size = 1 character
-ba/copy-to-EDX  1/imm32
+ba/copy-to-edx  1/imm32
 # . syscall
-b8/copy-to-EAX  3/imm32/read
+b8/copy-to-eax  3/imm32/read
 cd/syscall  0x80/imm8
 
 # syscall(write, stdout, X, 1)
 # . fd = 1 (stdout)
-bb/copy-to-EBX  1/imm32
+bb/copy-to-ebx  1/imm32
 # . initialize X (location to read from)
-b9/copy-to-ECX  X/imm32
+b9/copy-to-ecx  X/imm32
 # . size = 1 character
-ba/copy-to-EDX  1/imm32
+ba/copy-to-edx  1/imm32
 # . syscall
-b8/copy-to-EAX  4/imm32/write
+b8/copy-to-eax  4/imm32/write
 cd/syscall  0x80/imm8
 
-# syscall(exit, EBX)
-b8/copy-to-EAX  1/imm32/exit
+# syscall(exit, ebx)
+b8/copy-to-eax  1/imm32/exit
 cd/syscall  0x80/imm8
 
 # . . vim:nowrap:textwidth=0