From 2104d1a75b76dbffc0b15a96c98d94e7a16594e8 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 27 Jan 2020 00:39:46 -0800 Subject: 5925 --- html/075print-int-decimal.subx.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'html/075print-int-decimal.subx.html') diff --git a/html/075print-int-decimal.subx.html b/html/075print-int-decimal.subx.html index bf35a3be..75271d9a 100644 --- a/html/075print-int-decimal.subx.html +++ b/html/075print-int-decimal.subx.html @@ -66,7 +66,7 @@ if ('onhashchange' in window) { 5 # . op subop mod rm32 base index scale r32 6 # . 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 7 - 8 print-int32-decimal: # out : (addr stream byte), n : int32 + 8 print-int32-decimal: # out: (addr stream byte), n: int32 9 # works by generating characters from lowest to highest and pushing them 10 # to the stack, before popping them one by one into the stream 11 # @@ -109,7 +109,7 @@ if ('onhashchange' in window) { 48 b9/copy-to-ecx 0xa/imm32 49 # push sentinel 50 68/push 0/imm32/sentinel - 51 # var eax : int = abs(n) + 51 # var eax: int = abs(n) 52 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 0/r32/eax 0xc/disp8 . # copy *(ebp+12) to eax 53 3d/compare-eax-with 0/imm32 54 7d/jump-if->= $print-int32-decimal:read-loop/disp8 @@ -135,11 +135,11 @@ if ('onhashchange' in window) { 74 $print-int32-decimal:write: 75 # edi = out 76 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 7/r32/edi 8/disp8 . # copy *(ebp+8) to edi - 77 # var w/edx : int = out->write + 77 # var w/edx: int = out->write 78 8b/copy 0/mod/indirect 7/rm32/edi . . . 2/r32/edx . . # copy *edi to edx - 79 # var curr/ecx : (addr byte) = &out->data[out->write] + 79 # var curr/ecx: (addr byte) = &out->data[out->write] 80 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/edi 2/index/edx . 1/r32/ecx 0xc/disp8 . # copy ebx+edx+12 to ecx - 81 # var max/ebx : (addr byte) = &out->data[out->length] + 81 # var max/ebx: (addr byte) = &out->data[out->length] 82 8b/copy 1/mod/*+disp8 7/rm32/edi . . . 3/r32/ebx 8/disp8 . # copy *(edi+8) to ebx 83 8d/copy-address 1/mod/*+disp8 4/rm32/sib 7/base/edi 3/index/ebx . 3/r32/ebx 0xc/disp8 . # copy edi+ebx+12 to ebx 84 $print-int32-decimal:write-loop: @@ -340,7 +340,7 @@ if ('onhashchange' in window) { 304 # . end 305 c3/return 306 -307 is-decimal-digit?: # c : byte -> eax : boolean +307 is-decimal-digit?: # c: byte -> eax: boolean 308 # . prologue 309 55/push-ebp 310 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp -- cgit 1.4.1-2-gfad0