summaryrefslogtreecommitdiff
path: root/tnslc/dummy.tnsl
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2023-01-03 02:03:54 -0500
committerKyle Gunger <kgunger12@gmail.com>2023-01-03 02:03:54 -0500
commitc94edbe007910755087e71cbb1a6a349d75e9b85 (patch)
treef466d26643f7caeb9a1f9a8fc5365338bc8637e8 /tnslc/dummy.tnsl
parent17c838e4755fefadfb001c19ba2f079eaba340f6 (diff)
Basic addition and subtraction
Diffstat (limited to 'tnslc/dummy.tnsl')
-rw-r--r--tnslc/dummy.tnsl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tnslc/dummy.tnsl b/tnslc/dummy.tnsl
index eda351a..741a0e0 100644
--- a/tnslc/dummy.tnsl
+++ b/tnslc/dummy.tnsl
@@ -6,13 +6,17 @@
test a, b
}
+/; add (int a, b) [int]
+ ;return a + b - 9 - 30
+;/
+
/; main (uint argc, ~~uint8 argv) [int]
# Fix for main func
;asm "mov %rdi, %r8"
;asm "mov %rsi, %r9"
# ;~void ptr = _alloc(10)
# ;_delete(ptr)
- ;return 1
+ # ;return add(argc, 2)
;/