From c94ecaf687cd53d7be8a9cafe5d0860f3e1373dd Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 1 Sep 2019 00:25:59 -0700 Subject: 5603 --- html/apps/sigils.subx.html | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'html') diff --git a/html/apps/sigils.subx.html b/html/apps/sigils.subx.html index d2de9dfa..6f38678b 100644 --- a/html/apps/sigils.subx.html +++ b/html/apps/sigils.subx.html @@ -174,7 +174,7 @@ if ('onhashchange' in window) { 112 # if slice-starts-with?(word-slice, "#") # comment 113 # continue 114 # if slice-starts-with?(word-slice, '%') # direct mode - 115 # emit-direct-mode(word-slice, out) + 115 # emit-direct-mode(out, word-slice) 116 # else if slice-starts-with?(word-slice, '*') # indirect mode 117 # base, index, scale, disp = parse-effective-address(word-slice) 118 # emit-indirect-mode(out, base, index, scale, disp) @@ -261,10 +261,10 @@ if ('onhashchange' in window) { 199 75/jump-if-not-equal $convert:check-for-indirect-mode/disp8 200 $convert:direct-mode: 201 +-- 46 lines: #? # dump word-slice ----------------------------------------------------------------------------------------------------------------------- - 247 # emit-direct-mode(word-slice, out) + 247 # emit-direct-mode(out, word-slice) 248 # . . push args - 249 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 0xc/disp8 . # push *(ebp+12) - 250 52/push-edx + 249 52/push-edx + 250 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 0xc/disp8 . # push *(ebp+12) 251 # . . call 252 e8/call emit-direct-mode/disp32 253 # . . discard args @@ -1114,14 +1114,14 @@ if ('onhashchange' in window) { 1272 5d/pop-to-ebp 1273 c3/return 1274 -1275 emit-direct-mode: # word-slice : (address slice), out : (address buffered-file) +1275 emit-direct-mode: # out : (address buffered-file), word-slice : (address slice) 1276 # . prolog 1277 55/push-ebp 1278 89/copy 3/mod/direct 5/rm32/ebp . . . 4/r32/esp . . # copy esp to ebp 1279 # . save registers 1280 50/push-eax 1281 # var local-slice/eax : (address slice) = {word-slice->start, word-slice->end} -1282 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 0/r32/eax 8/disp8 . # copy *(ebp+8) to eax +1282 8b/copy 1/mod/*+disp8 5/rm32/ebp . . . 0/r32/eax 0xc/disp8 . # copy *(ebp+12) to eax 1283 ff 6/subop/push 1/mod/*+disp8 0/rm32/eax . . . . 4/disp8 . # push *(eax+4) 1284 ff 6/subop/push 0/mod/indirect 0/rm32/eax . . . . . . # push *eax 1285 89/copy 3/mod/direct 0/rm32/eax . . . 4/r32/esp . . # copy esp to eax @@ -1151,7 +1151,7 @@ if ('onhashchange' in window) { 1309 # write-buffered(out, "3/mod/direct ") 1310 # . . push args 1311 68/push "3/mod/direct "/imm32 -1312 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 0xc/disp8 . # push *(ebp+12) +1312 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 8/disp8 . # push *(ebp+8) 1313 # . . call 1314 e8/call write-buffered/disp32 1315 # . . discard args @@ -1159,7 +1159,7 @@ if ('onhashchange' in window) { 1317 # print-int32-buffered(out, *eax) 1318 # . . push args 1319 ff 6/subop/push 0/mod/indirect 0/rm32/eax . . . . . . # push *eax -1320 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 0xc/disp8 . # push *(ebp+12) +1320 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 8/disp8 . # push *(ebp+8) 1321 # . . call 1322 e8/call print-int32-buffered/disp32 1323 # . . discard args @@ -1167,7 +1167,7 @@ if ('onhashchange' in window) { 1325 # write-buffered(out, "/rm32") 1326 # . . push args 1327 68/push "/rm32"/imm32 -1328 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 0xc/disp8 . # push *(ebp+12) +1328 ff 6/subop/push 1/mod/*+disp8 5/rm32/ebp . . . . 8/disp8 . # push *(ebp+8) 1329 # . . call 1330 e8/call write-buffered/disp32 1331 # . . discard args @@ -1212,10 +1212,10 @@ if ('onhashchange' in window) { 1370 51/push-ecx 1371 50/push-eax 1372 89/copy 3/mod/direct 1/rm32/ecx . . . 4/r32/esp . . # copy esp to ecx -1373 # emit-direct-mode(str, _test-output-buffered-file) +1373 # emit-direct-mode(_test-output-buffered-file, str) 1374 # . . push args -1375 68/push _test-output-buffered-file/imm32 -1376 51/push-ecx +1375 51/push-ecx +1376 68/push _test-output-buffered-file/imm32 1377 # . . call 1378 e8/call emit-direct-mode/disp32 1379 # . . discard args @@ -1272,10 +1272,10 @@ if ('onhashchange' in window) { 1455 51/push-ecx 1456 50/push-eax 1457 89/copy 3/mod/direct 1/rm32/ecx . . . 4/r32/esp . . # copy esp to ecx -1458 # emit-direct-mode(str/ecx, _test-output-buffered-file) +1458 # emit-direct-mode(_test-output-buffered-file, str/ecx) 1459 # . . push args -1460 68/push _test-output-buffered-file/imm32 -1461 51/push-ecx +1460 51/push-ecx +1461 68/push _test-output-buffered-file/imm32 1462 # . . call 1463 e8/call emit-direct-mode/disp32 1464 # . . discard args -- cgit 1.4.1-2-gfad0