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/apps/random.subx.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'html/apps/random.subx.html') diff --git a/html/apps/random.subx.html b/html/apps/random.subx.html index 838fa753..22efb051 100644 --- a/html/apps/random.subx.html +++ b/html/apps/random.subx.html @@ -68,22 +68,22 @@ if ('onhashchange' in window) { 10 # . 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 11 12 Entry: -13 # stream/ESI = syscall(open, "/dev/null", O_RDONLY, 0) # we can't use 'fd' because it looks like a hex byte -14 bb/copy-to-EBX Filename/imm32 -15 b9/copy-to-ECX 0/imm32/rdonly -16 ba/copy-to-EDX 0x180/imm32/fixed-perms -17 b8/copy-to-EAX 5/imm32/open +13 # stream/esi = syscall(open, "/dev/null", O_RDONLY, 0) # we can't use 'fd' because it looks like a hex byte +14 bb/copy-to-ebx Filename/imm32 +15 b9/copy-to-ecx 0/imm32/rdonly +16 ba/copy-to-edx 0x180/imm32/fixed-perms +17 b8/copy-to-eax 5/imm32/open 18 cd/syscall 0x80/imm8 -19 # . stream = EAX -20 89/copy 3/mod/direct 6/rm32/ESI . . . 0/r32/EAX . . # copy EAX to ESI +19 # . stream = eax +20 89/copy 3/mod/direct 6/rm32/esi . . . 0/r32/eax . . # copy eax to esi 21 22 $loop: 23 24 # syscall(read, Stream, N, 4) -25 89/copy 3/mod/direct 3/rm32/EBX . . . 6/r32/ESI . . # copy ESI to EBX -26 b9/copy-to-ECX N/imm32 -27 ba/copy-to-EDX 4/imm32/size -28 b8/copy-to-EAX 3/imm32/read +25 89/copy 3/mod/direct 3/rm32/ebx . . . 6/r32/esi . . # copy esi to ebx +26 b9/copy-to-ecx N/imm32 +27 ba/copy-to-edx 4/imm32/size +28 b8/copy-to-eax 3/imm32/read 29 cd/syscall 0x80/imm8 30 31 # print-int32-buffered(Stdout, *N) @@ -100,13 +100,13 @@ if ('onhashchange' in window) { 42 # . . call 43 e8/call write-buffered/disp32 44 # . . discard args -45 81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP +45 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp 46 47 eb/jump $loop/disp8 48 49 # syscall(exit, 0) -50 bb/copy-to-EBX 0/imm32 -51 b8/copy-to-EAX 1/imm32/exit +50 bb/copy-to-ebx 0/imm32 +51 b8/copy-to-eax 1/imm32/exit 52 cd/syscall 0x80/imm8 53 54 == data 0x0a000000 -- cgit 1.4.1-2-gfad0