diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-04-16 22:43:17 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-04-16 22:43:17 -0700 |
commit | 3c4201013a47b5f25d3f9774103e0a1d2dc86f1e (patch) | |
tree | 63290bd1a94e22b585f540e8ea28e6b7bbf09503 | |
parent | 3fc177746d8193da9861b1ea08dc7e6d6562a872 (diff) | |
download | mu-3c4201013a47b5f25d3f9774103e0a1d2dc86f1e.tar.gz |
5102
-rw-r--r-- | subx/052kernel-string-equal.subx | 4 | ||||
-rw-r--r-- | subx/054string-equal.subx | 4 | ||||
-rw-r--r-- | subx/073next-token.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex10.subx | 2 | ||||
-rw-r--r-- | subx/examples/ex11.subx | 4 | ||||
-rw-r--r-- | subx/examples/ex2.subx | 2 | ||||
-rw-r--r-- | subx/examples/ex8.subx | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/subx/052kernel-string-equal.subx b/subx/052kernel-string-equal.subx index 2a90b8e4..d2f196ea 100644 --- a/subx/052kernel-string-equal.subx +++ b/subx/052kernel-string-equal.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/054string-equal.subx b/subx/054string-equal.subx index d4add47a..6c23fccb 100644 --- a/subx/054string-equal.subx +++ b/subx/054string-equal.subx @@ -76,9 +76,9 @@ $string-equal?:loop: # ++i 41/increment-ECX # ++currs - 46/inc-ESI + 46/increment-ESI # ++currb - 47/inc-EDI + 47/increment-EDI eb/jump $string-equal?:loop/disp8 $string-equal?:true: b8/copy-to-EAX 1/imm32 diff --git a/subx/073next-token.subx b/subx/073next-token.subx index 9b3f5042..a7a894e3 100644 --- a/subx/073next-token.subx +++ b/subx/073next-token.subx @@ -704,7 +704,7 @@ $skip-chars-matching-in-slice:loop: 39/compare 3/mod/direct 3/rm32/EBX . . . 2/r32/EDX . . # compare EBX and EDX 75/jump-if-not-equal $skip-chars-matching-in-slice:end/disp8 # ++curr - 40/inc-EAX + 40/increment-EAX eb/jump $skip-chars-matching-in-slice:loop/disp8 $skip-chars-matching-in-slice:end: # . restore registers @@ -800,7 +800,7 @@ $skip-chars-not-matching-in-slice:loop: 39/compare 3/mod/direct 3/rm32/EBX . . . 2/r32/EDX . . # compare EBX and EDX 74/jump-if-equal $skip-chars-not-matching-in-slice:end/disp8 # ++curr - 40/inc-EAX + 40/increment-EAX eb/jump $skip-chars-not-matching-in-slice:loop/disp8 $skip-chars-not-matching-in-slice:end: # . restore registers 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: |