From 7328af20a1921d9258a60803ee5367da97a6082e Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 13 Aug 2018 21:25:22 -0700 Subject: 4521 --- html/subx/ex3.subx.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'html/subx/ex3.subx.html') diff --git a/html/subx/ex3.subx.html b/html/subx/ex3.subx.html index c3dddcfb..56cde00c 100644 --- a/html/subx/ex3.subx.html +++ b/html/subx/ex3.subx.html @@ -71,18 +71,18 @@ if ('onhashchange' in window) { 16 # counter: ECX = 1 17 b9/copy 1/imm32 # copy 1 to ECX 18 -19 loop: +19 $loop: 20 # while (counter <= 10) 21 81 7/subop/compare 3/mod/direct 1/rm32/ecx 0xa/imm32 # compare ECX, 10/imm -22 7f/jump-if exit/disp8 # jump-if-greater exit +22 7f/jump-if $exit/disp8 # jump-if-greater $exit 23 # result += counter 24 01/add 3/mod/direct 3/rm32/ebx 1/r32/ecx # add ECX to EBX 25 # ++counter 26 81 0/subop/add 3/mod/direct 1/rm32/ecx 1/imm32 # add 1 to ECX 27 # loop -28 eb/jump loop/disp8 # jump loop +28 eb/jump $loop/disp8 # jump $loop 29 -30 exit: +30 $exit: 31 # exit(EBX) 32 b8/copy 1/imm32 # copy 1 to EAX 33 cd/syscall 0x80/imm8 # int 80h -- cgit 1.4.1-2-gfad0