From 8d2dece2918675f4c7159b36a5cf154ff1ccd7f5 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 15 Nov 2020 23:51:40 -0800 Subject: 7250 --- html/apps/ex2.mu.html | 2 +- html/ex2.mu.png | Bin 12812 -> 100365 bytes html/mu-init.subx.html | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'html') diff --git a/html/apps/ex2.mu.html b/html/apps/ex2.mu.html index faa89af6..603e330f 100644 --- a/html/apps/ex2.mu.html +++ b/html/apps/ex2.mu.html @@ -71,7 +71,7 @@ if ('onhashchange' in window) { 13 } 14 15 fn do-add a: int, b: int -> _/eax: int { -16 var result/ebx: int <- copy a +16 var result/ecx: int <- copy a 17 result <- add b 18 return result 19 } diff --git a/html/ex2.mu.png b/html/ex2.mu.png index 4af277d4..9d846f4a 100644 Binary files a/html/ex2.mu.png and b/html/ex2.mu.png differ diff --git a/html/mu-init.subx.html b/html/mu-init.subx.html index dc0c5ec7..bc78932c 100644 --- a/html/mu-init.subx.html +++ b/html/mu-init.subx.html @@ -59,9 +59,9 @@ if ('onhashchange' in window) { 3 # See translate_mu for how this file is used. 4 # 5 # Mu programs start at a function called 'main' with this signature: - 6 # fn main args: (addr array addr array byte) -> exit-status/ebx: int + 6 # fn main args: (addr array addr array byte) -> _/ebx: int 7 # If your program doesn't need commandline arguments you can drop it: - 8 # fn main -> exit-status/ebx: int + 8 # fn main -> _/ebx: int 9 # 10 # Notice that the output must be in ebx, so that the exit() syscall can pick 11 # it up. -- cgit 1.4.1-2-gfad0