about summary refs log tree commit diff stats
path: root/subx/examples/ex8.subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx/examples/ex8.subx')
-rw-r--r--subx/examples/ex8.subx2
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/examples/ex8.subx b/subx/examples/ex8.subx
index f45813ec..c7c51c91 100644
--- a/subx/examples/ex8.subx
+++ b/subx/examples/ex8.subx
@@ -41,7 +41,7 @@ ascii-length:  # s : (address array byte) -> n/EAX
     b8/copy-to-EAX  0/imm32
 $ascii-length-loop:
     # var c/ECX = *s
-    8a/copy                         0/mod/*         2/rm32/EDX    .           .             .           1/r32/ECX   .               .                 # copy byte at *EDX to lower byte of ECX
+    8a/copy-byte                    0/mod/*         2/rm32/EDX    .           .             .           1/r32/CL    .               .                 # copy byte at *EDX to CL
     # if (c == '\0') break
     81          7/subop/compare     3/mod/direct    1/rm32/ECX    .           .             .           .           .               0/imm32           # compare ECX
     74/jump-if-equal  $ascii-length-ret/disp8