about summary refs log tree commit diff stats
path: root/subx/examples
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2019-04-16 22:43:17 -0700
committerKartik Agaram <vc@akkartik.com>2019-04-16 22:43:17 -0700
commit3c4201013a47b5f25d3f9774103e0a1d2dc86f1e (patch)
tree63290bd1a94e22b585f540e8ea28e6b7bbf09503 /subx/examples
parent3fc177746d8193da9861b1ea08dc7e6d6562a872 (diff)
downloadmu-3c4201013a47b5f25d3f9774103e0a1d2dc86f1e.tar.gz
5102
Diffstat (limited to 'subx/examples')
-rw-r--r--subx/examples/ex10.subx2
-rw-r--r--subx/examples/ex11.subx4
-rw-r--r--subx/examples/ex2.subx2
-rw-r--r--subx/examples/ex8.subx2
4 files changed, 5 insertions, 5 deletions
diff --git a/subx/examples/ex10.subx b/subx/examples/ex10.subx
index 842ff28b..53148464 100644
--- a/subx/examples/ex10.subx
+++ b/subx/examples/ex10.subx
@@ -52,7 +52,7 @@ $argv-equal:loop:
     75/jump-if-not-equal  $argv-equal:false/disp8
     # ++s1, ++s2
     41/increment-ECX
-    42/inc-EDX
+    42/increment-EDX
     # end while
     eb/jump  $argv-equal:loop/disp8
 $argv-equal:break:
diff --git a/subx/examples/ex11.subx b/subx/examples/ex11.subx
index 4ed4673d..78bcf5c9 100644
--- a/subx/examples/ex11.subx
+++ b/subx/examples/ex11.subx
@@ -88,9 +88,9 @@ $kernel-string-equal?:loop:
     # ++i
     41/increment-ECX
     # ++s1
-    47/inc-EDI
+    47/increment-EDI
     # ++s2
-    46/inc-ESI
+    46/increment-ESI
     eb/jump  $kernel-string-equal?:loop/disp8
 $kernel-string-equal?:break:
     # return *s1 == 0
diff --git a/subx/examples/ex2.subx b/subx/examples/ex2.subx
index 4288b419..757c5220 100644
--- a/subx/examples/ex2.subx
+++ b/subx/examples/ex2.subx
@@ -12,7 +12,7 @@
 # EBX = 1
 bb/copy-to-EBX  1/imm32
 # increment EBX
-43/inc-EBX
+43/increment-EBX
 # syscall(exit, EBX)
 b8/copy-to-EAX  1/imm32/exit
 cd/syscall  0x80/imm8
diff --git a/subx/examples/ex8.subx b/subx/examples/ex8.subx
index fa1bb6e7..d31786da 100644
--- a/subx/examples/ex8.subx
+++ b/subx/examples/ex8.subx
@@ -48,7 +48,7 @@ $ascii-length:loop:
     # ++s
     42/increment-EDX
     # ++result
-    40/inc-EAX
+    40/increment-EAX
     # loop
     eb/jump  $ascii-length:loop/disp8
 $ascii-length:end: