From f75f333f52d42908ebf427f04fa6033f285ea5e5 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 2 Dec 2018 13:12:23 -0800 Subject: 4817 --- html/subx/053new_segment.subx.html | 13 +++++++------ html/subx/examples/ex6.subx.html | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'html') diff --git a/html/subx/053new_segment.subx.html b/html/subx/053new_segment.subx.html index 8e448bd7..cb34eb86 100644 --- a/html/subx/053new_segment.subx.html +++ b/html/subx/053new_segment.subx.html @@ -24,6 +24,7 @@ body { font-size:12pt; font-family: monospace; color: #aaaaaa; background-color: .subxS1Comment { color:#2d8cff; } .CommentedCode { color: #6c6c6c; } .subxFunction { color: #ff8700; } +.subxMinorFunction { color: #875f5f; } .subxH1Comment { color:#00ffff; } --> @@ -89,13 +90,13 @@ if ('onhashchange' in window) { 27 55/push-EBP 28 89/copy 3/mod/direct 5/rm32/EBP . . . 4/r32/ESP . . # copy ESP to EBP 29 53/push-EBX -30 # copy len to mmap-new-segment.len -31 # TODO: compute mmap-new-segment+4 before runtime +30 # copy len to _mmap-new-segment.len +31 # TODO: compute _mmap-new-segment+4 before runtime 32 8b/copy 1/mod/*+disp8 4/rm32/sib 5/base/EBP 4/index/none . 0/r32/EAX 8/disp8 . # copy *(EBP+8) to EAX -33 bb/copy-to-EBX mmap-new-segment/imm32 +33 bb/copy-to-EBX _mmap-new-segment/imm32 34 89/copy 1/mod/*+disp8 3/rm32/EBX . . . 0/r32/EAX 4/disp8 . # copy EAX to *(EBX+4) -35 # mmap(mmap-new-segment) -36 bb/copy-to-EBX mmap-new-segment/imm32 +35 # mmap(_mmap-new-segment) +36 bb/copy-to-EBX _mmap-new-segment/imm32 37 b8/copy-to-EAX 0x5a/imm32/mmap 38 cd/syscall 0x80/imm8 39 # . epilog @@ -107,7 +108,7 @@ if ('onhashchange' in window) { 45 == data 46 47 # various constants used here were found in the Linux sources (search for file mman-common.h) -48 mmap-new-segment: # type mmap_arg_struct +48 _mmap-new-segment: # type mmap_arg_struct 49 # addr 50 00 00 00 00 # null 51 # len diff --git a/html/subx/examples/ex6.subx.html b/html/subx/examples/ex6.subx.html index fb8b5bd7..d73c43b3 100644 --- a/html/subx/examples/ex6.subx.html +++ b/html/subx/examples/ex6.subx.html @@ -92,7 +92,7 @@ if ('onhashchange' in window) { 31 0e 00 00 00 # 14 32 X: # string to print 33 48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21 0a 00 -34 # H e l l o , ␣ w o r l d ! newline null +34 # H e l l o , ␣ w o r l d ! newline null 35 36 # . . vim:nowrap:textwidth=0 -- cgit 1.4.1-2-gfad0