diff options
Diffstat (limited to 'viewer.s')
-rw-r--r-- | viewer.s | 35 |
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 + |