diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2023-01-03 02:03:54 -0500 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2023-01-03 02:03:54 -0500 |
commit | c94edbe007910755087e71cbb1a6a349d75e9b85 (patch) | |
tree | f466d26643f7caeb9a1f9a8fc5365338bc8637e8 /tnslc/dummy.tnsl | |
parent | 17c838e4755fefadfb001c19ba2f079eaba340f6 (diff) |
Basic addition and subtraction
Diffstat (limited to 'tnslc/dummy.tnsl')
-rw-r--r-- | tnslc/dummy.tnsl | 6 |
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) ;/ |