From 8aeb85f04ee68b960a6d326aca1a17dec2f6d019 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 9 Dec 2019 01:26:58 -0800 Subject: 5806 --- html/095stack.subx.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'html/095stack.subx.html') diff --git a/html/095stack.subx.html b/html/095stack.subx.html index a8124528..988bac36 100644 --- a/html/095stack.subx.html +++ b/html/095stack.subx.html @@ -76,20 +76,20 @@ if ('onhashchange' in window) { 16 51/push-ecx 17 # eax = s 18 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 0/r32/eax 8/disp8 . # copy *(ebp+8) to eax - 19 # ecx = &s->data[s->length] + 19 # var max/ecx : (address byte) = &s->data[s->length] 20 8b/copy 1/mod/*+disp8 0/rm32/eax . . . 1/r32/ecx 4/disp8 . # copy *(eax+4) to eax 21 8d/copy-address 1/mod/*+disp8 4/rm32/sib 0/base/eax 1/index/ecx . 1/r32/ecx 8/disp8 . # copy eax+ecx+8 to ecx 22 # s->top = 0 23 c7 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0/imm32 # copy to *eax - 24 # eax = s->data + 24 # var curr/eax : (address byte) = s->data 25 81 0/subop/add 3/mod/direct 0/rm32/eax . . . . . 8/imm32 # add to eax 26 $clear-stack:loop: - 27 # if (eax >= ecx) break + 27 # if (curr >= max) break 28 39/compare 3/mod/direct 0/rm32/eax . . . 1/r32/ecx . . # compare eax with ecx 29 73/jump-if-greater-or-equal-unsigned $clear-stack:end/disp8 - 30 # *eax = 0 + 30 # *curr = 0 31 c6 0/subop/copy 0/mod/direct 0/rm32/eax . . . . . 0/imm8 # copy byte to *eax - 32 # ++eax + 32 # ++curr 33 40/increment-eax 34 eb/jump $clear-stack:loop/disp8 35 $clear-stack:end: @@ -403,7 +403,7 @@ if ('onhashchange' in window) { 343 # if (s->top <= 0) abort 344 81 7/subop/compare 0/mod/indirect 6/rm32/esi . . . . . 0/imm32 # compare *esi 345 7e/jump-if-lesser-or-equal $top:abort/disp8 -346 # eax = s->data[s->top - 4] +346 # n = s->data[s->top - 4] 347 8b/copy 0/mod/indirect 6/rm32/esi . . . 1/r32/ecx . . # copy *esi to ecx 348 81 5/subop/subtract 3/mod/direct 1/rm32/ecx . . . . . 4/imm32 # subtract from ecx 349 8b/copy 1/mod/*+disp8 4/rm32/sib 6/base/esi 1/index/ecx . 0/r32/eax 8/disp8 . # copy *(esi+ecx+8) to eax -- cgit 1.4.1-2-gfad0