aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-04-13 13:01:40 +0200
committerkdx <kikoodx@paranoici.org>2023-04-13 13:01:40 +0200
commit18d4f15b4df89e7ffdd0b7d3fce915e9e71590df (patch)
treef644c73d4354c79ec18a24169832c28b6924c3fb /samples
downloadorga-18d4f15b4df89e7ffdd0b7d3fce915e9e71590df.tar.gz
i'm fucking insane
Diffstat (limited to 'samples')
-rw-r--r--samples/helloworld.orgaasm13
1 files changed, 13 insertions, 0 deletions
diff --git a/samples/helloworld.orgaasm b/samples/helloworld.orgaasm
new file mode 100644
index 0000000..9401e8f
--- /dev/null
+++ b/samples/helloworld.orgaasm
@@ -0,0 +1,13 @@
+LIT ,hellostr
+JRT ,putstr
+RET
+
+@putstr ( str -- )
+ DUP LDA WRT ( write )
+ LIT 0001 ADD ( increment pointer )
+ DUP LDA ( loop until end of string )
+ JNZ ,putstr
+RET
+
+( "hello world" )
+@hellostr 0068 0065 006c 006c 006f 0020 0077 006f 0072 006c 0064 0000