aboutsummaryrefslogtreecommitdiff
path: root/demo/linkage.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/linkage.asm
Initial commitHEADmain
Diffstat (limited to 'demo/linkage.asm')
-rw-r--r--demo/linkage.asm19
1 files changed, 19 insertions, 0 deletions
diff --git a/demo/linkage.asm b/demo/linkage.asm
new file mode 100644
index 0000000..e0f14e1
--- /dev/null
+++ b/demo/linkage.asm
@@ -0,0 +1,19 @@
+ ORG 200
+ LDA X /Load first operand into AC
+ BSA OR
+ HEX 3AF6
+ STA Y
+ HLT
+X, HEX 7B95
+Y, HEX 0
+OR, HEX 0
+ CMA
+ STA TMP
+ LDA OR I
+ CMA
+ AND TMP
+ CMA
+ ISZ OR
+ BUN OR I
+TMP, HEX 0
+ END