about summary refs log tree commit diff stats
path: root/examples/ex12.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/ex12.subx
parent22fb844ba4edf14eb85245a35f42e721658c4f8e (diff)
downloadmu-333525360b22f3d3ea31db46a4d2f1b4edbfebdb.tar.gz
5592 - switch register names to lowercase
Diffstat (limited to 'examples/ex12.subx')
-rw-r--r--examples/ex12.subx14
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/ex12.subx b/examples/ex12.subx
index 4d1d53d0..571d42d8 100644
--- a/examples/ex12.subx
+++ b/examples/ex12.subx
@@ -13,16 +13,16 @@
 
 Entry:
     # syscall(mmap, 0x1000)
-    bb/copy-to-EBX  Mmap-new-segment/imm32
-    b8/copy-to-EAX  0x5a/imm32/mmap
+    bb/copy-to-ebx  Mmap-new-segment/imm32
+    b8/copy-to-eax  0x5a/imm32/mmap
     cd/syscall  0x80/imm8
 
-    # write to *EAX to check that we have access to the newly-allocated segment
-    c7          0/subop/copy        0/mod/direct    0/rm32/EAX    .           .             .           .           .               0x34/imm32        # copy to *EAX
+    # write to *eax to check that we have access to the newly-allocated segment
+    c7          0/subop/copy        0/mod/direct    0/rm32/eax    .           .             .           .           .               0x34/imm32        # copy to *eax
 
-    # syscall(exit, EAX)
-    89/copy                         3/mod/direct    3/rm32/EBX    .           .             .           0/r32/EAX   .               .                 # copy EAX to EBX
-    b8/copy-to-EAX  1/imm32/exit
+    # syscall(exit, eax)
+    89/copy                         3/mod/direct    3/rm32/ebx    .           .             .           0/r32/eax   .               .                 # copy eax to ebx
+    b8/copy-to-eax  1/imm32/exit
     cd/syscall  0x80/imm8
 
 == data 0x0a000000