diff options
Diffstat (limited to '128subx-words.subx')
-rw-r--r-- | 128subx-words.subx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/128subx-words.subx b/128subx-words.subx index 6f93e421..e1e737a0 100644 --- a/128subx-words.subx +++ b/128subx-words.subx @@ -5,7 +5,7 @@ # . op subop mod rm32 base index scale r32 # . 1-3 bytes 3 bits 2 bits 3 bits 3 bits 3 bits 2 bits 2 bits 0/1/2/4 bytes 0/1/2/4 bytes -has-metadata?: # word: (addr slice), s: (addr string) -> eax: boolean +has-metadata?: # word: (addr slice), s: (addr string) -> result/eax: boolean # pseudocode: # var twig: &slice = next-token-from-slice(word->start, word->end, '/') # skip name # curr = twig->end @@ -275,7 +275,7 @@ test-has-metadata-multiple-false: #: - if it starts with '0x' it's treated as a number. (redundant) #: - if it's two characters long, it can't be a name. Either it's a hex #: byte, or it raises an error. -is-valid-name?: # in: (addr slice) -> eax: boolean +is-valid-name?: # in: (addr slice) -> result/eax: boolean # . prologue 55/push-ebp 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp @@ -532,7 +532,7 @@ test-is-valid-name-starts-with-digit: 5d/pop-to-ebp c3/return -is-label?: # word: (addr slice) -> eax: boolean +is-label?: # word: (addr slice) -> result/eax: boolean # . prologue 55/push-ebp 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp |