summaryrefslogtreecommitdiff
path: root/tnslc/tnslc_wrapped.tnsl
diff options
context:
space:
mode:
Diffstat (limited to 'tnslc/tnslc_wrapped.tnsl')
-rw-r--r--tnslc/tnslc_wrapped.tnsl17
1 files changed, 12 insertions, 5 deletions
diff --git a/tnslc/tnslc_wrapped.tnsl b/tnslc/tnslc_wrapped.tnsl
index 8643a01..f93c3c4 100644
--- a/tnslc/tnslc_wrapped.tnsl
+++ b/tnslc/tnslc_wrapped.tnsl
@@ -1,8 +1,5 @@
:include "c_wrap.tnsl"
-{}uint8 _name = "Hello World!"
-int _stop = 0
-
/; main (int argc, ~~uint argv) [int]
# On windows, the first two arguments are passed in RCX and RDX, so we need to
# update their positions here or else tnsl will have garbage values in r8 and r9
@@ -14,6 +11,16 @@ int _stop = 0
# asm "mov r8, rdi"
# asm "mov r9, rsi"
- _printf(~_name{0})
- return 0
+ Vector vec
+ vec.start(1)
+ uint8 a = 97
+ vec.push(~a)
+ vec.push(~a)
+ vec.push(~a)
+ vec.push(~a)
+ a = 0
+ vec.push(~a)
+ _printf(vec.dat)
+ vec.clean()
+ return a
;/ \ No newline at end of file