From 333525360b22f3d3ea31db46a4d2f1b4edbfebdb Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 26 Aug 2019 11:55:26 -0700 Subject: 5592 - switch register names to lowercase --- html/examples/ex3.subx.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'html/examples/ex3.subx.html') diff --git a/html/examples/ex3.subx.html b/html/examples/ex3.subx.html index 9a9ff088..6dd200f0 100644 --- a/html/examples/ex3.subx.html +++ b/html/examples/ex3.subx.html @@ -71,25 +71,25 @@ if ('onhashchange' in window) { 13 # . 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 14 15 Entry: -16 # result: EBX = 0 -17 bb/copy-to-EBX 0/imm32 -18 # counter: ECX = 1 -19 b9/copy-to-ECX 1/imm32 +16 # result: ebx = 0 +17 bb/copy-to-ebx 0/imm32 +18 # counter: ecx = 1 +19 b9/copy-to-ecx 1/imm32 20 21 $loop: 22 # if (counter > 10) break -23 81 7/subop/compare 3/mod/direct 1/rm32/ECX . . . . . 0xa/imm32 # compare ECX +23 81 7/subop/compare 3/mod/direct 1/rm32/ecx . . . . . 0xa/imm32 # compare ecx 24 7f/jump-if-greater $exit/disp8 25 # result += counter -26 01/add 3/mod/direct 3/rm32/EBX . . . 1/r32/ECX . . # add ECX to EBX +26 01/add 3/mod/direct 3/rm32/ebx . . . 1/r32/ecx . . # add ecx to ebx 27 # ++counter -28 41/increment-ECX +28 41/increment-ecx 29 # loop 30 eb/jump $loop/disp8 31 32 $exit: -33 # syscall(exit, EBX) -34 b8/copy-to-EAX 1/imm32/exit +33 # syscall(exit, ebx) +34 b8/copy-to-eax 1/imm32/exit 35 cd/syscall 0x80/imm8 36 37 == data 0x0a000000 -- cgit 1.4.1-2-gfad0