aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/example')
-rw-r--r--src/example/Makefile11
-rw-r--r--src/example/c64-tap.asm24
-rw-r--r--src/example/vic20+8k-tap.asm30
-rw-r--r--src/example/vic20-tap.asm30
4 files changed, 94 insertions, 1 deletions
diff --git a/src/example/Makefile b/src/example/Makefile
index 5d2d326..c74bbc8 100644
--- a/src/example/Makefile
+++ b/src/example/Makefile
@@ -21,7 +21,7 @@
#
ALL = spectrum.tap t64.t64 zx81.p gb.gb vcs.bin snes.sfc nes.nes cpc.cdt \
- prg.prg hex.hex vic20.prg vic20+8k.prg
+ prg.prg hex.hex vic20.prg vic20+8k.prg c64.tap vic20.tap vic20+8k.tap
CASM = ../casm
all: $(ALL) $(CASM)
@@ -67,6 +67,15 @@ vic20.prg: vic20.asm $(CASM)
vic20+8k.prg: vic20+8k.asm $(CASM)
$(CASM) vic20+8k.asm
+c64.tap: c64-tap.asm $(CASM)
+ $(CASM) c64-tap.asm
+
+vic20.tap: vic20-tap.asm $(CASM)
+ $(CASM) vic20-tap.asm
+
+vic20+8k.tap: vic20+8k-tap.asm $(CASM)
+ $(CASM) vic20+8k-tap.asm
+
clean:
rm -f $(ALL)
diff --git a/src/example/c64-tap.asm b/src/example/c64-tap.asm
new file mode 100644
index 0000000..8094607
--- /dev/null
+++ b/src/example/c64-tap.asm
@@ -0,0 +1,24 @@
+ ; Simple example C64 code
+ ;
+
+ cpu 6502
+
+ option codepage,cbm
+
+ option output-file,c64.tap
+ option output-format,cbm-tap
+ option cbm-tap-start,start
+
+ org $820
+
+main:
+ lda #0
+ clc
+loop:
+ sta 53280
+ adc #1
+ and #$0f
+ jmp loop
+
+start:
+ jmp main
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
diff --git a/src/example/vic20-tap.asm b/src/example/vic20-tap.asm
new file mode 100644
index 0000000..ff5317b
--- /dev/null
+++ b/src/example/vic20-tap.asm
@@ -0,0 +1,30 @@
+ ; Simple example C64 code
+ ;
+
+ cpu 6502
+
+ option codepage,cbm
+
+ option output-file,vic20.tap
+ option output-format,cbm-tap
+ option cbm-tap-start,start
+ option cbm-tap-system,vic20
+
+ org $1100
+
+main:
+ lda #0
+ clc
+loop:
+ sta 36879
+ adc #1
+ pha
+ jsr $ffe4
+ beq nokey
+ rts
+nokey:
+ pla
+ jmp loop
+
+start:
+ jmp main