summaryrefslogtreecommitdiff
path: root/04b/in04b
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-01-06 11:57:55 -0500
committerpommicket <pommicket@gmail.com>2022-01-06 11:57:55 -0500
commita415ec31c095b89b7867d61425e9211fceaf7a42 (patch)
tree18153be078018acdfc4f44d747837d03c391ac26 /04b/in04b
parent9d43ebe2aa32be615104a0dc3aec386b2017ccac (diff)
rvalues!
Diffstat (limited to '04b/in04b')
-rw-r--r--04b/in04b29
1 files changed, 19 insertions, 10 deletions
diff --git a/04b/in04b b/04b/in04b
index badf963..41ea471 100644
--- a/04b/in04b
+++ b/04b/in04b
@@ -1,9 +1,7 @@
-:test
- return -0x3874f
-
; declaration:
-; global <type> <name>
-; local <type> <name>
+; global <name>
+; local <name>
+; argument <name>
; :<label>
; statement:
; <declaration>
@@ -16,8 +14,10 @@
; return <rvalue>
; string <str>
; byte <number>
+; reserve <number>
; term:
; <var>
+; .<label>
; <number>
; number:
; 'c
@@ -25,12 +25,12 @@
; 0xabc
; lvalue:
; <var>
-; *1 <var> / *2 <var> / *4 <var> / *8 <var>
+; *1<var> / *2<var> / *4<var> / *8<var>
; rvalue:
-; <var>
+; <term>
; &<var>
-; *1 <var> / *2 <var> / *4 <var> / *8 <var>
-; ~<var>
+; *1<var> / *2<var> / *4<var> / *8<var>
+; ~<term>
; <function>(<term>, <term>, ...)
; <term> + <term>
; <term> - <term>
@@ -49,7 +49,16 @@ main() ; hello
global x
global y ;123
global z
-
+:test
+function
+ local eee
+ local fff
+ local ggg
+ return *2fff
+:test2
+function
+ return -123
+
:syscall
function
; ...