fixing quite a few bugs

This commit is contained in:
SpookyDervish
2025-09-13 07:08:11 +10:00
parent 170272353c
commit 86d59a8177
7 changed files with 70 additions and 19 deletions

View File

@@ -1,9 +1,17 @@
fun -int !add -int &a -int &b
add $a $b &a
return $a
fun -bool !greater -int &x -int &y
greater $x $y &x
return $x
endfun
pusharg 1
pusharg 4
call !add &result
end $result
pusharg 3
call !greater &bigger
if $bigger %yes
jump %no
@yes
stdout "yep!\n"
end 0
@no
stdout "nope...\n"
end 0