From 1c349ac7c571a97978e1cbbe726430ae9c741972 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sat, 11 Jul 2020 00:02:29 -0700 Subject: 6631 --- html/apps/arith.mu.html | 2 +- html/apps/browse.mu.html | 2 +- html/apps/crenshaw2-1.subx.html | 4 ++-- html/apps/crenshaw2-1b.subx.html | 4 ++-- html/apps/ex1.mu.html | 2 +- html/apps/ex2.mu.html | 2 +- html/apps/ex3.2.mu.html | 2 +- html/apps/ex3.mu.html | 2 +- html/apps/factorial.mu.html | 2 +- html/apps/mu.subx.html | 6 +++--- html/apps/parse-int.mu.html | 2 +- html/apps/print-file.mu.html | 2 +- html/apps/tui.mu.html | 2 +- 13 files changed, 17 insertions(+), 17 deletions(-) (limited to 'html/apps') diff --git a/html/apps/arith.mu.html b/html/apps/arith.mu.html index 842235c0..ede95c3e 100644 --- a/html/apps/arith.mu.html +++ b/html/apps/arith.mu.html @@ -91,7 +91,7 @@ if ('onhashchange' in window) { 32 # 33 # Error handling is non-existent. This is just a prototype. 34 - 35 fn main -> exit-status/ebx: int { + 35 fn main -> exit-status/ebx: int { 36 var look/esi: byte <- copy 0 # lookahead 37 var n/eax: int <- copy 0 # result of each expression 38 print-string-to-screen "press ctrl-c or ctrl-d to exit\n" diff --git a/html/apps/browse.mu.html b/html/apps/browse.mu.html index a587f8d5..74b1c5f1 100644 --- a/html/apps/browse.mu.html +++ b/html/apps/browse.mu.html @@ -65,7 +65,7 @@ if ('onhashchange' in window) { 6 # 7 # Press 'q' to quit. All other keys scroll down. 8 - 9 fn main args-on-stack: (addr array (addr array byte)) -> exit-status/ebx: int { + 9 fn main args-on-stack: (addr array (addr array byte)) -> exit-status/ebx: int { 10 +-- 20 lines: # var file/esi: (addr buffered-file) = open args-on-stack[1] for reading -------------------------------------------------------------------------------------------------- 30 enable-screen-grid-mode 31 var nrows/eax: int <- copy 0 diff --git a/html/apps/crenshaw2-1.subx.html b/html/apps/crenshaw2-1.subx.html index e21e94bb..23df3be0 100644 --- a/html/apps/crenshaw2-1.subx.html +++ b/html/apps/crenshaw2-1.subx.html @@ -278,7 +278,7 @@ if ('onhashchange' in window) { 217 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp 218 # . if (eax == false) 219 3d/compare-eax-and 0/imm32/false -220 75/jump-if-!= $get-num:main/disp8 +220 75/jump-if-!= $get-num:main/disp8 221 # . expected(ed, err, "integer") 222 # . . push args 223 68/push "integer"/imm32 @@ -288,7 +288,7 @@ if ('onhashchange' in window) { 227 e8/call expected/disp32 # never returns 228 # . . discard args 229 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0xc/imm32 # add to esp -230 $get-num:main: +230 $get-num:main: 231 # - otherwise read a digit 232 # . save registers 233 50/push-eax diff --git a/html/apps/crenshaw2-1b.subx.html b/html/apps/crenshaw2-1b.subx.html index ee5a830c..ebe6226e 100644 --- a/html/apps/crenshaw2-1b.subx.html +++ b/html/apps/crenshaw2-1b.subx.html @@ -283,7 +283,7 @@ if ('onhashchange' in window) { 222 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 4/imm32 # add to esp 223 # . if (eax == false) 224 3d/compare-eax-and 0/imm32/false -225 75/jump-if-!= $get-num:main/disp8 +225 75/jump-if-!= $get-num:main/disp8 226 # . expected(ed, err, "integer") 227 # . . push args 228 68/push "integer"/imm32 @@ -293,7 +293,7 @@ if ('onhashchange' in window) { 232 e8/call expected/disp32 # never returns 233 # . . discard args 234 81 0/subop/add 3/mod/direct 4/rm32/esp . . . . . 0xc/imm32 # add to esp -235 $get-num:main: +235 $get-num:main: 236 # - otherwise read a digit 237 # . save registers 238 50/push-eax diff --git a/html/apps/ex1.mu.html b/html/apps/ex1.mu.html index aa62b62e..159569ff 100644 --- a/html/apps/ex1.mu.html +++ b/html/apps/ex1.mu.html @@ -66,7 +66,7 @@ if ('onhashchange' in window) { 8 # $ echo $? 9 # 42 10 -11 fn main -> result/ebx: int { +11 fn main -> result/ebx: int { 12 result <- copy 0x2a # Mu requires hexadecimal 13 } diff --git a/html/apps/ex2.mu.html b/html/apps/ex2.mu.html index e3410433..b88c8e1d 100644 --- a/html/apps/ex2.mu.html +++ b/html/apps/ex2.mu.html @@ -65,7 +65,7 @@ if ('onhashchange' in window) { 7 # $ echo $? 8 # 7 9 -10 fn main -> result/ebx: int { +10 fn main -> result/ebx: int { 11 result <- do-add 3 4 12 } 13 diff --git a/html/apps/ex3.2.mu.html b/html/apps/ex3.2.mu.html index ea4eb2eb..cc0c290d 100644 --- a/html/apps/ex3.2.mu.html +++ b/html/apps/ex3.2.mu.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { 6 # $ echo $? 7 # 55 8 - 9 fn main -> result/ebx: int { + 9 fn main -> result/ebx: int { 10 # populate a 11 var a: (array int 0xb) # 11; we waste index 0 12 var i/ecx: int <- copy 1 diff --git a/html/apps/ex3.mu.html b/html/apps/ex3.mu.html index 3c68aed1..cb76985a 100644 --- a/html/apps/ex3.mu.html +++ b/html/apps/ex3.mu.html @@ -65,7 +65,7 @@ if ('onhashchange' in window) { 7 # $ echo $? 8 # 55 9 -10 fn main -> result/ebx: int { +10 fn main -> result/ebx: int { 11 result <- copy 0 12 var i/eax: int <- copy 1 13 { diff --git a/html/apps/factorial.mu.html b/html/apps/factorial.mu.html index e735e68e..bce88f11 100644 --- a/html/apps/factorial.mu.html +++ b/html/apps/factorial.mu.html @@ -90,7 +90,7 @@ if ('onhashchange' in window) { 31 check-ints-equal result 0x78 "F - test-factorial" 32 } 33 -34 fn main args-on-stack: (addr array (addr array byte)) -> exit-status/ebx: int { +34 fn main args-on-stack: (addr array (addr array byte)) -> exit-status/ebx: int { 35 var args/eax: (addr array (addr array byte)) <- copy args-on-stack 36 var tmp/ecx: int <- length args 37 $main-body: { diff --git a/html/apps/mu.subx.html b/html/apps/mu.subx.html index 10d87927..f4a10378 100644 --- a/html/apps/mu.subx.html +++ b/html/apps/mu.subx.html @@ -886,7 +886,7 @@ if ('onhashchange' in window) { 864 (clear-stream _test-output-stream) 865 (clear-stream $_test-output-buffered-file->buffer) 866 # - 867 (write _test-input-stream "fn main -> result/ebx: int {\n") + 867 (write _test-input-stream "fn main -> result/ebx: int {\n") 868 (write _test-input-stream " result <- do-add 3 4\n") 869 (write _test-input-stream "}\n") 870 (write _test-input-stream "fn do-add a: int, b: int -> result/ebx: int {\n") @@ -940,7 +940,7 @@ if ('onhashchange' in window) { 923 (clear-stream _test-output-stream) 924 (clear-stream $_test-output-buffered-file->buffer) 925 # - 926 (write _test-input-stream "fn main -> result/ebx: int {\n") + 926 (write _test-input-stream "fn main -> result/ebx: int {\n") 927 (write _test-input-stream " result <- do-add 3 4\n") 928 (write _test-input-stream "}\n") 929 (write _test-input-stream "sig do-add a: int, b: int -> result/ebx: int\n") @@ -1218,7 +1218,7 @@ if ('onhashchange' in window) { 1236 (clear-stream _test-output-stream) 1237 (clear-stream $_test-output-buffered-file->buffer) 1238 # - 1239 (write _test-input-stream "fn main -> result/ebx: int {\n") + 1239 (write _test-input-stream "fn main -> result/ebx: int {\n") 1240 (write _test-input-stream " result <- foo\n") 1241 (write _test-input-stream "}\n") 1242 (write _test-input-stream "fn foo -> result/ebx: int {\n") diff --git a/html/apps/parse-int.mu.html b/html/apps/parse-int.mu.html index e347f1a5..e1784221 100644 --- a/html/apps/parse-int.mu.html +++ b/html/apps/parse-int.mu.html @@ -64,7 +64,7 @@ if ('onhashchange' in window) { 6 # $ echo $? 7 # 123 8 - 9 fn main _args: (addr array (addr array byte)) -> exit-status/ebx: int { + 9 fn main _args: (addr array (addr array byte)) -> exit-status/ebx: int { 10 $main-body: { 11 # if no args, print a message and exit 12 var args/esi: (addr array (addr array byte)) <- copy _args diff --git a/html/apps/print-file.mu.html b/html/apps/print-file.mu.html index fae1ca3f..17069ce9 100644 --- a/html/apps/print-file.mu.html +++ b/html/apps/print-file.mu.html @@ -65,7 +65,7 @@ if ('onhashchange' in window) { 7 # $ ./a.elf x 8 # abc 9 -10 fn main _args: (addr array (addr array byte)) -> exit-status/ebx: int { +10 fn main _args: (addr array (addr array byte)) -> exit-status/ebx: int { 11 var args/eax: (addr array (addr array byte)) <- copy _args 12 $main-body: { 13 var n/ecx: int <- length args diff --git a/html/apps/tui.mu.html b/html/apps/tui.mu.html index 93733c11..cc259340 100644 --- a/html/apps/tui.mu.html +++ b/html/apps/tui.mu.html @@ -62,7 +62,7 @@ if ('onhashchange' in window) { 4 # $ ./translate_mu apps/tui.mu 5 # $ ./a.elf 6 - 7 fn main -> exit-status/ebx: int { + 7 fn main -> exit-status/ebx: int { 8 var nrows/eax: int <- copy 0 9 var ncols/ecx: int <- copy 0 10 nrows, ncols <- screen-size -- cgit 1.4.1-2-gfad0