diff options
Diffstat (limited to '123slice.subx')
-rw-r--r-- | 123slice.subx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/123slice.subx b/123slice.subx index 3809f34e..c3a4943a 100644 --- a/123slice.subx +++ b/123slice.subx @@ -6,7 +6,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 -slice-empty?: # s: (addr slice) -> eax: boolean +slice-empty?: # s: (addr slice) -> result/eax: boolean # . prologue 55/push-ebp 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp @@ -117,7 +117,7 @@ test-slice-empty-if-start-greater-than-end: 5d/pop-to-ebp c3/return -slice-equal?: # s: (addr slice), p: (addr array byte) -> eax: boolean +slice-equal?: # s: (addr slice), p: (addr array byte) -> result/eax: boolean # pseudocode: # if (p == 0) return (s == 0) # currs = s->start @@ -484,7 +484,7 @@ test-slice-equal-with-null: 5d/pop-to-ebp c3/return -slice-starts-with?: # s: (addr slice), head: (addr array byte) -> eax: boolean +slice-starts-with?: # s: (addr slice), head: (addr array byte) -> result/eax: boolean # pseudocode # hsize = head->size # if (hsize > s->end - s->start) return false |