diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-07-08 00:30:43 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-07-08 00:30:43 -0700 |
commit | fc07ee4f54b4596f41d47f663ee1370e07cf0847 (patch) | |
tree | 62f627907baa038f94c2b3d2982d31d2772cc6e1 | |
parent | 597ce7a94304f962587516babbcbb18914ebf93f (diff) | |
download | mu-fc07ee4f54b4596f41d47f663ee1370e07cf0847.tar.gz |
.
-rw-r--r-- | subx/apps/subx-common.subx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subx/apps/subx-common.subx b/subx/apps/subx-common.subx index 6ab82884..d71cd373 100644 --- a/subx/apps/subx-common.subx +++ b/subx/apps/subx-common.subx @@ -1350,13 +1350,13 @@ is-label?: # word : (address slice) -> EAX : boolean 8b/copy 1/mod/*+disp8 5/rm32/EBP . . . 1/r32/ECX 8/disp8 . # copy *(EBP+8) to ECX # ECX = word->end 8b/copy 1/mod/*+disp8 1/rm32/ECX . . . 1/r32/ECX 4/disp8 . # copy *(ECX+4) to ECX - # *(word->end - 1) == ':' + # return *(word->end - 1) == ':' # . EAX = 0 31/xor 3/mod/direct 0/rm32/EAX . . . 0/r32/EAX . . # clear EAX # . EAX = *((char *) word->end - 1) 8a/copy-byte 1/mod/*+disp8 1/rm32/ECX . . . 0/r32/AL -1/disp8 . # copy byte at *(ECX-1) to AL - # . (word->end - 1)/EAX == ':' - 3d/compare-EAX-and 3A/imm32/colon + # . return (EAX == ':') + 3d/compare-EAX-and 0x3a/imm32/colon b8/copy-to-EAX 1/imm32/true 74/jump-if-equal $is-label?:end/disp8 b8/copy-to-EAX 0/imm32/false |