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/ex5.subx.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'html/examples/ex5.subx.html') diff --git a/html/examples/ex5.subx.html b/html/examples/ex5.subx.html index 62b48e8a..ba63cdd8 100644 --- a/html/examples/ex5.subx.html +++ b/html/examples/ex5.subx.html @@ -69,32 +69,32 @@ if ('onhashchange' in window) { 12 Entry: 13 14 # allocate x on the stack -15 81 5/subop/subtract 3/mod/direct 4/rm32/ESP . . . . . 4/imm32 # subtract from ESP +15 81 5/subop/subtract 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # subtract from esp 16 17 # syscall(read, stdin, x, 1) 18 # . fd = 0 (stdin) -19 bb/copy-to-EBX 0/imm32 +19 bb/copy-to-ebx 0/imm32 20 # . data = x (location to write result to) -21 8d/copy-address 1/mod/*+disp8 4/rm32/sib 4/base/ESP 4/index/none 1/r32/ECX 4/disp8 . # copy ESP+4 to ECX +21 8d/copy-address 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none 1/r32/ecx 4/disp8 . # copy esp+4 to ecx 22 # . size = 1 character -23 ba/copy-to-EDX 1/imm32 +23 ba/copy-to-edx 1/imm32 24 # . syscall -25 b8/copy-to-EAX 3/imm32/read +25 b8/copy-to-eax 3/imm32/read 26 cd/syscall 0x80/imm8 27 28 # syscall(write, stdout, x, 1) 29 # . fd = 1 (stdout) -30 bb/copy-to-EBX 1/imm32 +30 bb/copy-to-ebx 1/imm32 31 # . data = x (location to read from) -32 8d/copy-address 1/mod/*+disp8 4/rm32/sib 4/base/ESP 4/index/none 1/r32/ECX 4/disp8 . # copy ESP+4 to ECX +32 8d/copy-address 1/mod/*+disp8 4/rm32/sib 4/base/esp 4/index/none 1/r32/ecx 4/disp8 . # copy esp+4 to ecx 33 # . size = 1 character -34 ba/copy-to-EDX 1/imm32 +34 ba/copy-to-edx 1/imm32 35 # . syscall -36 b8/copy-to-EAX 4/imm32/write +36 b8/copy-to-eax 4/imm32/write 37 cd/syscall 0x80/imm8 38 -39 # syscall(exit, EBX) -40 b8/copy-to-EAX 1/imm32/exit +39 # syscall(exit, ebx) +40 b8/copy-to-eax 1/imm32/exit 41 cd/syscall 0x80/imm8 42 43 == data 0x0a000000 -- cgit 1.4.1-2-gfad0