diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-01-27 00:36:44 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-01-27 00:36:44 -0800 |
commit | 71eb22a5bf94f5fa0a3c95212450e3c6a1a6a990 (patch) | |
tree | 56307b5145be44b2239d3c782234309ed714f1b6 /082slurp.subx | |
parent | 1a65c3af0f797892f5981f8ebd33c275c1ef06b0 (diff) | |
download | mu-71eb22a5bf94f5fa0a3c95212450e3c6a1a6a990.tar.gz |
5924
Diffstat (limited to '082slurp.subx')
-rw-r--r-- | 082slurp.subx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/082slurp.subx b/082slurp.subx index 7f35986f..8f58d6c5 100644 --- a/082slurp.subx +++ b/082slurp.subx @@ -5,7 +5,7 @@ # read all bytes from 'f' and store them into 's' # abort if 's' is too small -slurp: # f : (addr buffered-file), s : (addr stream byte) +slurp: # f: (addr buffered-file), s: (addr stream byte) # pseudocode: # while true # if (s->write >= s->length) abort @@ -63,7 +63,7 @@ $slurp:loop: 3d/compare-eax-and 0/imm32 74/jump-if-= $slurp:end/disp8 $slurp:from-stream: - # var c/eax : byte = f->data[f->read] + # var c/eax: byte = f->data[f->read] 31/xor 3/mod/direct 0/rm32/eax . . . 0/r32/eax . . # clear eax 8a/copy-byte 1/mod/*+disp8 4/rm32/sib 6/base/esi 1/index/ecx . 0/r32/AL 0x10/disp8 . # copy byte at *(esi+ecx+16) to AL # s->data[s->write] = c |