diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-03-22 12:05:25 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-03-22 12:05:25 -0700 |
commit | 98d45d34deb456de19f922bc13ac6a99720c2b32 (patch) | |
tree | 0aec8640a6286451a0303e16fa54ab05887d5567 /apps | |
parent | 0ef7f1d2d6f76ca3111cdbc59d4ae0038f61c2aa (diff) | |
download | mu-98d45d34deb456de19f922bc13ac6a99720c2b32.tar.gz |
6161
Diffstat (limited to 'apps')
-rw-r--r-- | apps/ex9.subx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/ex9.subx b/apps/ex9.subx index 327ac655..232178a0 100644 --- a/apps/ex9.subx +++ b/apps/ex9.subx @@ -40,10 +40,10 @@ Entry: ascii-difference: # (s1, s2): null-terminated ascii strings # a = first letter of s1 (ecx) - 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none 0/r32/eax 4/disp8 . # copy *(esp+4) to eax + 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none . 0/r32/eax 4/disp8 . # copy *(esp+4) to eax 8b/copy 0/mod/indirect 0/rm32/eax . . . 0/r32/eax . . # copy *eax to eax # b = first letter of s2 (edx) - 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none 1/r32/ecx 8/disp8 # copy *(esp+8) to ecx + 8b/copy 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none . 1/r32/ecx 8/disp8 # copy *(esp+8) to ecx 8b/copy 0/mod/indirect 1/rm32/ecx . . . 1/r32/ecx . . # copy *ecx to ecx # a-b 29/subtract 3/mod/direct 0/rm32/eax . . . 1/r32/ecx . . # subtract ecx from eax |