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 /109stream-equal.subx | |
parent | c532373e29928f1b8a2085038b000c3213ce4523 (diff) | |
download | mu-34dd228eb2706674f3ce06297997ce11f42768c8.tar.gz |
6627
Diffstat (limited to '109stream-equal.subx')
-rw-r--r-- | 109stream-equal.subx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/109stream-equal.subx b/109stream-equal.subx index b3bd9b95..e7bb9487 100644 --- a/109stream-equal.subx +++ b/109stream-equal.subx @@ -6,7 +6,7 @@ # . 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 # compare all the data in a stream (ignoring the read pointer) -stream-data-equal?: # f: (addr stream byte), s: (addr array byte) -> eax: boolean +stream-data-equal?: # f: (addr stream byte), s: (addr array byte) -> result/eax: boolean # . prologue 55/push-ebp 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp @@ -227,7 +227,7 @@ $check-stream-equal:end: # on success, set f->read to after the next newline # on failure, leave f->read unmodified # this function is usually used only in tests, so we repeatedly write f->read -next-stream-line-equal?: # f: (addr stream byte), s: (addr array byte) -> eax: boolean +next-stream-line-equal?: # f: (addr stream byte), s: (addr array byte) -> result/eax: boolean # pseudocode: # currf = f->read # bound: f->write # currs = 0 # bound: s->size |