From 3da9d2c16b2ce44ad46e6e7706b363f1dafa0af2 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 30 Jul 2018 10:00:40 -0700 Subject: 4454 --- subx/ex3.subx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subx') diff --git a/subx/ex3.subx b/subx/ex3.subx index 9439b3d3..2ad61edd 100644 --- a/subx/ex3.subx +++ b/subx/ex3.subx @@ -18,12 +18,12 @@ loop: # while (counter <= 10) - 81 7/subop/compare 3/mod/direct 1/rm32/ecx 0xa/imm32 # compare ECX, 10/imm + 81 7/subop/compare 3/mod/direct 1/rm32/ecx 0xa/imm32 # compare ECX, 10/imm 7f/jump-if exit/disp8 # jump-if-greater exit # result += counter 01/add 3/mod/direct 3/rm32/ebx 1/r32/ecx # add ECX to EBX # ++counter - 81 0/subop/add 3/mod/direct 1/rm32/ecx 1/imm32 # add 1 to ECX + 81 0/subop/add 3/mod/direct 1/rm32/ecx 1/imm32 # add 1 to ECX # loop eb/jump loop/disp8 # jump loop -- cgit 1.4.1-2-gfad0