From 2104d1a75b76dbffc0b15a96c98d94e7a16594e8 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 27 Jan 2020 00:39:46 -0800 Subject: 5925 --- html/060read.subx.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'html/060read.subx.html') diff --git a/html/060read.subx.html b/html/060read.subx.html index dc314fea..140a0e95 100644 --- a/html/060read.subx.html +++ b/html/060read.subx.html @@ -106,7 +106,7 @@ if ('onhashchange' in window) { 45 # . op subop mod rm32 base index scale r32 46 # . 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 47 - 48 read: # f : fd or (addr stream byte), s : (addr stream byte) -> num-bytes-read/eax : int + 48 read: # f: fd or (addr stream byte), s: (addr stream byte) -> num-bytes-read/eax: int 49 # . prologue 50 55/push-ebp 51 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp @@ -171,7 +171,7 @@ if ('onhashchange' in window) { 110 # '_buffer' is like '_append', but silently stops instead of aborting when it runs out of space 111 112 # 3-argument variant of _buffer -113 _buffer-3: # out : address, outend : address, s : (array byte) -> num_bytes_buffered/eax +113 _buffer-3: # out: address, outend: address, s: (array byte) -> num_bytes_buffered/eax 114 # . prologue 115 55/push-ebp 116 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp @@ -203,7 +203,7 @@ if ('onhashchange' in window) { 142 c3/return 143 144 # 4-argument variant of _buffer -145 _buffer-4: # out : address, outend : address, in : address, inend : address -> num_bytes_buffered/eax +145 _buffer-4: # out: address, outend: address, in: address, inend: address -> num_bytes_buffered/eax 146 # . prologue 147 55/push-ebp 148 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp @@ -256,7 +256,7 @@ if ('onhashchange' in window) { 195 # Unclear how I'd use it, though. Callers seem to need the check anyway. 196 # Maybe a better helper would be 'empty-stream?' 197 -198 _read: # fd : int, s : (addr stream byte) -> num-bytes-read/eax : int +198 _read: # fd: int, s: (addr stream byte) -> num-bytes-read/eax: int 199 # . prologue 200 55/push-ebp 201 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp @@ -272,11 +272,11 @@ if ('onhashchange' in window) { 211 # edx = s->length 212 8b/copy 1/mod/*+disp8 6/rm32/esi . . . 2/r32/edx 8/disp8 . # copy *(esi+8) to edx 213 # syscall(read, fd, &s->data[s->write], s->length - s->write) -214 # . . fd : ebx +214 # . . fd: ebx 215 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 3/r32/ebx 8/disp8 . # copy *(ebp+8) to ebx -216 # . . data : ecx = &s->data[s->write] +216 # . . data: ecx = &s->data[s->write] 217 8d/copy-address 1/mod/*+disp8 4/rm32/sib 6/base/esi 0/index/eax . 1/r32/ecx 0xc/disp8 . # copy esi+eax+12 to ecx -218 # . . size : edx = s->length - s->write +218 # . . size: edx = s->length - s->write 219 29/subtract 3/mod/direct 2/rm32/edx . . . 0/r32/eax . . # subtract eax from edx 220 # . . syscall 221 b8/copy-to-eax 3/imm32/read -- cgit 1.4.1-2-gfad0