diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-07-10 21:08:26 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-07-10 21:08:26 -0700 |
commit | 34dd228eb2706674f3ce06297997ce11f42768c8 (patch) | |
tree | 8578333485d415c465cb8b7ea6f98586491dbc2c /128subx-words.subx | |
parent | c532373e29928f1b8a2085038b000c3213ce4523 (diff) | |
download | mu-34dd228eb2706674f3ce06297997ce11f42768c8.tar.gz |
6627
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 |