diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-07-03 18:27:01 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-07-03 18:27:01 -0700 |
commit | c95648c96093ce0d44c21191bab0ee2c9b04becc (patch) | |
tree | eb58e435a158100b99e152199b193acc53df4ab3 /112read-byte.subx | |
parent | 7ced4e44ddb6e15152eb8bcef9dda68aba53710b (diff) | |
download | mu-c95648c96093ce0d44c21191bab0ee2c9b04becc.tar.gz |
reading from streams
The Mu shell has no string literals, only streams. No random access, only sequential access. But I've been playing fast and loose with its read pointer until now. Hopefully things are cleaned up now.
Diffstat (limited to '112read-byte.subx')
-rw-r--r-- | 112read-byte.subx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/112read-byte.subx b/112read-byte.subx index 1a18fc04..93503d8b 100644 --- a/112read-byte.subx +++ b/112read-byte.subx @@ -47,6 +47,7 @@ $read-byte:abort: _test-input-stream: # (stream byte) # current write index 0/imm32 +$_test-input-stream->read: # current read index 0/imm32 # size |