aboutsummaryrefslogtreecommitdiff
path: root/src/example/vic20+8k-tap.asm
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2024-08-04 18:23:47 +0100
committerIan C <ianc@noddybox.co.uk>2024-08-04 18:23:47 +0100
commitc086f055ef676ca96e948340386cb04725916db3 (patch)
tree6a7cda12d663d1027351d6d98c2d98bc0face5b2 /src/example/vic20+8k-tap.asm
parent38f98a4d81042befe65fd84c33eeea806ecc5c86 (diff)
Started adding CBM tape file support. Still the bulk of it to do, butHEADmaster
framework is there.
Diffstat (limited to 'src/example/vic20+8k-tap.asm')
-rw-r--r--src/example/vic20+8k-tap.asm30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/example/vic20+8k-tap.asm b/src/example/vic20+8k-tap.asm
new file mode 100644
index 0000000..f457551
--- /dev/null
+++ b/src/example/vic20+8k-tap.asm
@@ -0,0 +1,30 @@
+ ; Simple example C64 code
+ ;
+
+ cpu 6502
+
+ option codepage,cbm
+
+ option output-file,vic20+8k.tap
+ option output-format,cbm-tap
+ option cbm-tap-start,start
+ option cbm-tap-system,vic20+8k
+
+ org $1300
+
+main:
+ lda #0
+ clc
+loop:
+ sta 36879
+ adc #1
+ pha
+ jsr $ffe4
+ beq nokey
+ rts
+nokey:
+ pla
+ jmp loop
+
+start:
+ jmp main