aboutsummaryrefslogtreecommitdiff
path: root/demo/add.asm
diff options
context:
space:
mode:
authorryo <ryo@nopwd.lol>2024-12-30 16:11:32 +0000
committerryo <ryo@nopwd.lol>2024-12-30 16:11:32 +0000
commit24c328db90627881d7c293e1ba481c6bd96e31da (patch)
tree0b125ab8a8d443b7b9bfc1f7943db0a0fc29a1cb /demo/add.asm
Initial commitHEADmain
Diffstat (limited to 'demo/add.asm')
-rw-r--r--demo/add.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/demo/add.asm b/demo/add.asm
new file mode 100644
index 0000000..1b11842
--- /dev/null
+++ b/demo/add.asm
@@ -0,0 +1,12 @@
+ ORG 30
+ LDA X I
+ ADD Y /simple comment
+ STA S / another one
+ HLT
+
+ / variables
+X, HEX 1A
+Y, DEC -23
+S, DEC 0
+
+ END