From c086f055ef676ca96e948340386cb04725916db3 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 4 Aug 2024 18:23:47 +0100 Subject: Started adding CBM tape file support. Still the bulk of it to do, but framework is there. --- src/example/Makefile | 11 ++++++++++- src/example/c64-tap.asm | 24 ++++++++++++++++++++++++ src/example/vic20+8k-tap.asm | 30 ++++++++++++++++++++++++++++++ src/example/vic20-tap.asm | 30 ++++++++++++++++++++++++++++++ 4 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 src/example/c64-tap.asm create mode 100644 src/example/vic20+8k-tap.asm create mode 100644 src/example/vic20-tap.asm (limited to 'src/example') 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 -- cgit v1.2.3