From 7c361248bba7799400dee7b7b1dc33f5dadcf3a4 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 21 Mar 2016 15:35:43 +0000 Subject: Added initial version of T64 output driver. --- src/example/Makefile | 5 ++++- src/example/c64.asm | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 src/example/c64.asm (limited to 'src/example') diff --git a/src/example/Makefile b/src/example/Makefile index 282cd6d..13d24bb 100644 --- a/src/example/Makefile +++ b/src/example/Makefile @@ -20,7 +20,7 @@ # Makefile for examples # -ALL = spectrum.tap # c64.t64 zx81.p +ALL = spectrum.tap c64.t64 # zx81.p CASM = ../casm all: $(ALL) @@ -28,5 +28,8 @@ all: $(ALL) spectrum.tap: spectrum.asm $(CASM) spectrum.asm +c64.t64: c64.asm + $(CASM) c64.asm + clean: rm -f $(ALL) diff --git a/src/example/c64.asm b/src/example/c64.asm new file mode 100644 index 0000000..5e80223 --- /dev/null +++ b/src/example/c64.asm @@ -0,0 +1,19 @@ + ; Simple example C64 code + ; + + cpu 6502 + + option codepage,cbm + + option output-file,c64.t64 + option output-format,t64 + + org $6000 + + lda #0 + clc +loop: + sta 53280 + adc #1 + and #$0f + jmp loop -- cgit v1.2.3