summaryrefslogtreecommitdiff
path: root/demos/test.asm
diff options
context:
space:
mode:
Diffstat (limited to 'demos/test.asm')
-rw-r--r--demos/test.asm22
1 files changed, 22 insertions, 0 deletions
diff --git a/demos/test.asm b/demos/test.asm
new file mode 100644
index 0000000..2b03cc2
--- /dev/null
+++ b/demos/test.asm
@@ -0,0 +1,22 @@
+ org 38
+
+ lda num1 i
+lop, add num2 / add in loop
+ isz ctr
+ bun lop
+ sta sum / save ac to sum
+
+ hlt
+
+ctr, dec -5
+num1, hex a1
+sum, hex 0
+
+num2, dec 21
+ org 9f
+ hex c4b5
+ dec -70
+ hex 43
+ hex d89a
+
+ end