aboutsummaryrefslogtreecommitdiff
path: root/samples/helloworld.orgaasm
diff options
context:
space:
mode:
Diffstat (limited to 'samples/helloworld.orgaasm')
-rw-r--r--samples/helloworld.orgaasm18
1 files changed, 9 insertions, 9 deletions
diff --git a/samples/helloworld.orgaasm b/samples/helloworld.orgaasm
index b78de23..abc99bc 100644
--- a/samples/helloworld.orgaasm
+++ b/samples/helloworld.orgaasm
@@ -1,14 +1,14 @@
-LIT ,hellostr
-JRT ,putstr
-RET
+ LIT ,hellostr
+ JRT ,putstr
+ RET
@putstr ( str -- )
- DUP LDA WRT ( write )
- INC ( increment pointer )
- DUP LDA ( loop until end of string )
- JNZ ,putstr
- POP
-RET
+ DUP LDA WRT ( write )
+ INC ( increment pointer )
+ DUP LDA ( loop until end of string )
+ JNZ ,putstr
+ POP
+ RET
( "hello world" )
@hellostr 0068 0065 006c 006c 006f 0020 0077 006f 0072 006c 0064 000a 0000