aboutsummaryrefslogtreecommitdiff
path: root/viewer.s
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2019-03-30 03:41:23 -0400
committerB. Watson <yalhcru@gmail.com>2019-03-30 03:41:23 -0400
commit41640fe33b90ec675cb86bf8179a44618ee1cfa5 (patch)
treeb569081fdffdeac4bf47ee79d6fc34a904840af5 /viewer.s
downloadimg2atari-master.tar.gz
initial commitHEADmaster
Diffstat (limited to 'viewer.s')
-rw-r--r--viewer.s35
1 files changed, 35 insertions, 0 deletions
diff --git a/viewer.s b/viewer.s
new file mode 100644
index 0000000..8479cc4
--- /dev/null
+++ b/viewer.s
@@ -0,0 +1,35 @@
+; Wait for keypress, then exit
+; Relocatable code.
+; Assemble with:
+; cl65 -t none -o viewer.xex viewer.s
+
+ .include "atari.inc"
+
+dataptr = FR0
+tmp = FR0+2
+
+start = $0400
+
+; segment header
+ .org start-6
+ .word $FFFF
+ .word start
+ .word endmain-1
+
+ .org start
+main:
+ lda #$ff
+ sta 764
+loop:
+ lda 764
+ cmp #$ff
+ beq loop
+
+ rts
+endmain:
+
+; segment header
+ .word RUNAD
+ .word RUNAD+1
+ .word main
+