about summary refs log tree commit diff stats
path: root/apps/ex8.subx
diff options
context:
space:
mode:
Diffstat (limited to 'apps/ex8.subx')
-rw-r--r--apps/ex8.subx2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/ex8.subx b/apps/ex8.subx
index 45e49937..868aa743 100644
--- a/apps/ex8.subx
+++ b/apps/ex8.subx
@@ -43,7 +43,7 @@ $ascii-length:loop:
     # var c/ecx = *s
     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
+    81          7/subop/compare     3/mod/direct    1/rm32/ecx    .           .             .           .           .               0/imm32/null      # compare ecx
     74/jump-if-=  $ascii-length:end/disp8
     # ++s
     42/increment-edx