From 2104d1a75b76dbffc0b15a96c98d94e7a16594e8 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 27 Jan 2020 00:39:46 -0800 Subject: 5925 --- html/050_write.subx.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'html/050_write.subx.html') diff --git a/html/050_write.subx.html b/html/050_write.subx.html index 2369ce10..967cf9d8 100644 --- a/html/050_write.subx.html +++ b/html/050_write.subx.html @@ -70,7 +70,7 @@ if ('onhashchange' in window) { 11 b8/copy-to-eax 1/imm32/exit 12 cd/syscall 0x80/imm8 13 -14 _write: # fd : int, s : (addr array byte) +14 _write: # fd: int, s: (addr array byte) 15 # . prologue 16 55/push-ebp 17 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp @@ -80,12 +80,12 @@ if ('onhashchange' in window) { 21 52/push-edx 22 53/push-ebx 23 # syscall(write, fd, (data) s+4, (size) *s) -24 # . fd : ebx +24 # . ebx = fd 25 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 3/r32/ebx 8/disp8 . # copy *(ebp+8) to ebx -26 # . data : ecx = s+4 +26 # . var data/ecx: (addr byte) = s+4 27 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 1/r32/ecx 0xc/disp8 . # copy *(ebp+12) to ecx 28 81 0/subop/add 3/mod/direct 1/rm32/ecx . . . . . 4/imm32 # add to ecx -29 # . size : edx = *s +29 # . var size/edx: int = *s 30 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 2/r32/edx 0xc/disp8 . # copy *(ebp+12) to edx 31 8b/copy 0/mod/indirect 2/rm32/edx . . . 2/r32/edx . . # copy *edx to edx 32 # . syscall -- cgit 1.4.1-2-gfad0