function calls

This commit is contained in:
pommicket 2022-01-06 13:13:12 -05:00
parent a415ec31c0
commit b66a2dbe6b
3 changed files with 177 additions and 12 deletions

View file

@ -14,7 +14,6 @@
; return <rvalue>
; string <str>
; byte <number>
; reserve <number>
; term:
; <var>
; .<label>
@ -44,7 +43,7 @@
; <term> < <term> (left shift)
; <term> > <term> (unsigned right shift)
main() ; hello
main(46) ; hello
global x
global y ;123
@ -54,7 +53,8 @@ function
local eee
local fff
local ggg
return *2fff
return test2(eee, 0x223, ggg)
:test2
function
return -123
@ -99,7 +99,7 @@ function
:main
function
puts(str_hello_world)
puts(.str_hello_world)
syscall(0x3c, 0)
:str_hello_world
string Hello, world!