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 /123slice.subx | |
parent | c532373e29928f1b8a2085038b000c3213ce4523 (diff) | |
download | mu-34dd228eb2706674f3ce06297997ce11f42768c8.tar.gz |
6627
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 |