From 3ff2fe607c2cb5690d201d3b83ddcc957e949b7a Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Tue, 9 Nov 2021 09:23:31 -0800 Subject: . --- html/linux/apps/ex5.subx.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'html/linux/apps/ex5.subx.html') diff --git a/html/linux/apps/ex5.subx.html b/html/linux/apps/ex5.subx.html index 949e207c..d3e8282e 100644 --- a/html/linux/apps/ex5.subx.html +++ b/html/linux/apps/ex5.subx.html @@ -15,9 +15,9 @@ body { font-size:12pt; font-family: monospace; color: #000000; background-color: a { color:inherit; } * { font-size:12pt; font-size: 1em; } .subxComment { color: #005faf; } +.subxS1Comment { color: #0000af; } .subxS2Comment { color: #8a8a8a; } .LineNr { } -.subxS1Comment { color: #0000af; } .SpecialChar { color: #d70000; } .Normal { color: #000000; background-color: #ffffd7; padding-bottom: 1px; } --> @@ -58,8 +58,8 @@ if ('onhashchange' in window) { 1 # Read a character from stdin, save it to a local on the stack, write it to stdout. 2 # 3 # To run: - 4 # $ bootstrap/bootstrap translate apps/ex5.subx -o ex5 - 5 # $ bootstrap/bootstrap run ex5 + 4 # $ ./translate_subx 000init.subx apps/ex5.subx + 5 # $ ./a.elf 6 7 == code 8 # instruction effective address register displacement immediate @@ -81,7 +81,7 @@ if ('onhashchange' in window) { 24 # . syscall 25 e8/call syscall_read/disp32 26 -27 # syscall(write, stdout, x, 1) +27 # syscall_write(stdout, x, 1) 28 # . fd = 1 (stdout) 29 bb/copy-to-ebx 1/imm32 30 # . data = x (location to read from) -- cgit 1.4.1-2-gfad0