diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-02-14 16:49:10 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-02-14 16:49:10 -0800 |
commit | 833152354e906bee0721e02995f186c1948d72f1 (patch) | |
tree | dfd871de43c7e49771734143b3f501a8a74c4b8a /subx/examples/ex10.subx | |
parent | 1e43ba2b741e2d59779bbaa0b8919d8c1496e024 (diff) | |
download | mu-833152354e906bee0721e02995f186c1948d72f1.tar.gz |
4963
Diffstat (limited to 'subx/examples/ex10.subx')
-rw-r--r-- | subx/examples/ex10.subx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/examples/ex10.subx b/subx/examples/ex10.subx index 07b5b4bb..7e37a54b 100644 --- a/subx/examples/ex10.subx +++ b/subx/examples/ex10.subx @@ -41,9 +41,9 @@ argv-equal: # (s1, s2) : null-terminated ascii strings -> EAX : boolean $argv-equal:loop: # c1/EAX, c2/EBX = *s1, *s2 b8/copy-to-EAX 0/imm32 - 8a/copy 0/mod/indirect 1/rm32/ECX . . . 0/r32/EAX . . # copy byte at *ECX to lower byte of EAX + 8a/copy-byte 0/mod/indirect 1/rm32/ECX . . . 0/r32/AL . . # copy byte at *ECX to AL bb/copy-to-EBX 0/imm32 - 8a/copy 0/mod/indirect 2/rm32/EDX . . . 3/r32/EBX . . # copy byte at *EDX to lower byte of EBX + 8a/copy-byte 0/mod/indirect 2/rm32/EDX . . . 3/r32/BL . . # copy byte at *EDX to BL # if (c1 == 0) break 3d/compare-EAX 0/imm32 74/jump-if-equal $argv-equal:break/disp8 |