From 999c529cb972079df3bc693945be34a77336ddf4 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 26 Oct 2019 23:51:14 -0700 Subject: 5716 --- html/084emit-hex-array.subx.html | 86 ++++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 44 deletions(-) (limited to 'html/084emit-hex-array.subx.html') diff --git a/html/084emit-hex-array.subx.html b/html/084emit-hex-array.subx.html index 53f87bc4..d3b42d62 100644 --- a/html/084emit-hex-array.subx.html +++ b/html/084emit-hex-array.subx.html @@ -119,55 +119,53 @@ if ('onhashchange' in window) { 59 # setup 60 # . clear-stream(_test-output-stream) 61 # . . push args - 62 68/push _test-output-stream/imm32 + 62 68/push _test-output-stream/imm32 63 # . . call 64 e8/call clear-stream/disp32 65 # . . discard args 66 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp - 67 # . clear-stream(_test-output-buffered-file+4) + 67 # . clear-stream(_test-output-buffered-file->buffer) 68 # . . push args - 69 b8/copy-to-eax _test-output-buffered-file/imm32 - 70 05/add-to-eax 4/imm32 - 71 50/push-eax - 72 # . . call - 73 e8/call clear-stream/disp32 - 74 # . . discard args - 75 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp - 76 # var arr/ecx (address array byte) = [01, 02, 03] - 77 68/push 0x00030201/imm32 # bytes 01 02 03 - 78 68/push 3/imm32/length - 79 89/copy 3/mod/direct 1/rm32/ecx . . . 4/r32/esp . . # copy esp to ecx - 80 # emit-hex-array(_test-output-buffered-file, arr) - 81 # . . push args - 82 51/push-ecx - 83 68/push _test-output-buffered-file/imm32 - 84 # . . call - 85 e8/call emit-hex-array/disp32 - 86 # . . discard args - 87 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp - 88 # . flush(_test-output-buffered-file) - 89 # . . push args - 90 68/push _test-output-buffered-file/imm32 - 91 # . . call - 92 e8/call flush/disp32 - 93 # . . discard args - 94 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp - 95 +-- 33 lines: #? # dump output --------------------------------------------------------------------------------------------------------------------------- -128 # check-next-stream-line-equal(_test-output-stream, "01 02 03 ", msg) -129 # . . push args -130 68/push "F - test-emit-hex-array"/imm32 -131 68/push "01 02 03 "/imm32 -132 68/push _test-output-stream/imm32 -133 # . . call -134 e8/call check-next-stream-line-equal/disp32 -135 # . . discard args -136 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0xc/imm32 # add to esp -137 # . epilogue -138 89/copy 3/mod/direct 4/rm32/esp . . . 5/r32/ebp . . # copy ebp to esp -139 5d/pop-to-ebp -140 c3/return -141 -142 # . . vim:nowrap:textwidth=0 + 69 68/push _test-output-buffered-file->buffer/imm32 + 70 # . . call + 71 e8/call clear-stream/disp32 + 72 # . . discard args + 73 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp + 74 # var arr/ecx (address array byte) = [01, 02, 03] + 75 68/push 0x00030201/imm32 # bytes 01 02 03 + 76 68/push 3/imm32/length + 77 89/copy 3/mod/direct 1/rm32/ecx . . . 4/r32/esp . . # copy esp to ecx + 78 # emit-hex-array(_test-output-buffered-file, arr) + 79 # . . push args + 80 51/push-ecx + 81 68/push _test-output-buffered-file/imm32 + 82 # . . call + 83 e8/call emit-hex-array/disp32 + 84 # . . discard args + 85 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 8/imm32 # add to esp + 86 # . flush(_test-output-buffered-file) + 87 # . . push args + 88 68/push _test-output-buffered-file/imm32 + 89 # . . call + 90 e8/call flush/disp32 + 91 # . . discard args + 92 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp + 93 +-- 33 lines: #? # dump output --------------------------------------------------------------------------------------------------------------------------- +126 # check-next-stream-line-equal(_test-output-stream, "01 02 03 ", msg) +127 # . . push args +128 68/push "F - test-emit-hex-array"/imm32 +129 68/push "01 02 03 "/imm32 +130 68/push _test-output-stream/imm32 +131 # . . call +132 e8/call check-next-stream-line-equal/disp32 +133 # . . discard args +134 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0xc/imm32 # add to esp +135 # . epilogue +136 89/copy 3/mod/direct 4/rm32/esp . . . 5/r32/ebp . . # copy ebp to esp +137 5d/pop-to-ebp +138 c3/return +139 +140 # . . vim:nowrap:textwidth=0 -- cgit 1.4.1-2-gfad0