From c52ae116ace032a3eaa53bd297836b675cd8393e Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Mon, 17 Feb 2020 15:29:43 -0800 Subject: 6015 --- html/mu-init.subx.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'html/mu-init.subx.html') diff --git a/html/mu-init.subx.html b/html/mu-init.subx.html index e9fa6bab..324210e4 100644 --- a/html/mu-init.subx.html +++ b/html/mu-init.subx.html @@ -57,9 +57,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: (address array kernel-string) -> exit_status/ebx: int + 6 # fn main args: (addr array kernel-string) -> exit-status/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 -> exit-status/ebx: int 9 # 10 # Notice that the output must be in ebx, so that the exit() syscall can pick 11 # it up. @@ -69,7 +69,7 @@ if ('onhashchange' in window) { 15 Entry: 16 # we don't use ebp in Entry; just initialize it 17 bd/copy-to-ebp 0/imm32 -18 # var args/eax: (address array kernel-string) +18 # var args/eax: (addr array kernel-string) 19 89/<- %eax 4/r32/esp 20 # initialize the heap 21 (new-segment *Heap-size Heap) -- cgit 1.4.1-2-gfad0