about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 6ec8d4b0..688d7f1f 100644
--- a/subx/examples/ex8.subx
+++ b/subx/examples/ex8.subx
@@ -43,7 +43,7 @@ ascii_length:  # (s)
   # initialize s (EDX)
   8b/copy                         1/mod/*+disp8   4/rm32/sib    4/base/ESP  4/index/none              2/r32/EDX   4/disp8                                 # copy *(ESP+4) to EDX
   # var result = 0 (EAX)
-  b8/copy                         .               .             .           .             .           .           .               0/imm32                 # copy 1 to EAX
+  b8/copy                         .               .             .           .             .           .           .               0/imm32                 # copy 0 to EAX
 $al_loop:
   # var c = *s (ECX)
   8a/copy                         0/mod/*         2/rm32/EDX    .           .             .           1/r32/ECX   .               .                       # copy byte at *EDX to lower byte of ECX