From 2104d1a75b76dbffc0b15a96c98d94e7a16594e8 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 27 Jan 2020 00:39:46 -0800 Subject: 5925 --- html/084emit-hex-array.subx.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'html/084emit-hex-array.subx.html') diff --git a/html/084emit-hex-array.subx.html b/html/084emit-hex-array.subx.html index db2762e5..fb0e7885 100644 --- a/html/084emit-hex-array.subx.html +++ b/html/084emit-hex-array.subx.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { 4 # . 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 5 6 # print 'arr' in hex with a space after every byte - 7 emit-hex-array: # out : (addr buffered-file), arr : (addr array byte) + 7 emit-hex-array: # out: (addr buffered-file), arr: (addr array byte) 8 # . prologue 9 55/push-ebp 10 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp @@ -77,12 +77,12 @@ if ('onhashchange' in window) { 17 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 7/r32/edi 8/disp8 . # copy *(ebp+8) to edi 18 # edx = arr 19 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 2/r32/edx 0xc/disp8 . # copy *(ebp+12) to edx - 20 # var curr/ecx : (addr byte) = arr->data + 20 # var curr/ecx: (addr byte) = arr->data 21 8d/copy-address 1/mod/*+disp8 2/rm32/edx . . . 1/r32/ecx 4/disp8 . # copy edx+4 to ecx - 22 # var max/edx : (addr byte) = &arr->data[arr->length] + 22 # var max/edx: (addr byte) = &arr->data[arr->length] 23 8b/copy 0/mod/indirect 2/rm32/edx . . . 2/r32/edx . . # copy *edx to edx 24 01/add 3/mod/direct 2/rm32/edx . . . 1/r32/ecx . . # add ecx to edx - 25 # var c/eax : byte = 0 + 25 # var c/eax: byte = 0 26 31/xor 3/mod/direct 0/rm32/eax . . . 0/r32/eax . . # clear eax 27 $emit-hex-array:loop: 28 # if (curr >= width) break -- cgit 1.4.1-2-gfad0