diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-11-20 12:47:26 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-11-20 12:47:26 -0500 |
commit | 4b9596e8923982a3ae190b60ab1f4be56e7f2c4c (patch) | |
tree | 9c75a2a522735abba9f6e48e61d27a5ce901acaa /04b/in04b | |
parent | d74db670118dc4afdf9e6ecf01432aea4bc1ad39 (diff) |
looking up things
Diffstat (limited to '04b/in04b')
-rw-r--r-- | 04b/in04b | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -11,7 +11,7 @@ ; <lvalue> += <rvalue> ; <lvalue> -= <rvalue> ; <function>(<term>, <term>, ...) -; syscall(<term>, <term>, ...) +; syscall <term>, <term>, ... ; return <rvalue> ; byte <number> ; term: @@ -33,7 +33,7 @@ ; <var>[<term>] ; ~<var> ; <function>(<term>, <term>, ...) -; syscall(<term>, <term>, ...) +; syscall <term>, <term>, ... ; <term> + <term> ; <term> - <term> ; NOTE: *, /, % are signed (imul and idiv) @@ -71,7 +71,7 @@ function argument char c local *char p p = &c - syscall(1, 1, p, 1, 0, 0, 0, 0) + syscall 1, 1, p, 1, 0, 0, 0, 0 return :puts @@ -79,7 +79,7 @@ function argument *char s local long len len = strlen(s) - syscall(1, 1, s, len, 0, 0, 0, 0) + syscall 1, 1, s, len, 0, 0, 0, 0 return :main @@ -88,7 +88,7 @@ function hello = `Hello, world! ` puts(hello) - syscall(0x3c, 0, 0, 0, 0, 0, 0, 0) + syscall 0x3c, 0, 0, 0, 0, 0, 0, 0 :f |