From c59d0a6ce3e709171ba8815b0830797a4b55c492 Mon Sep 17 00:00:00 2001 From: Ian C Date: Thu, 11 Apr 2024 22:55:50 +0100 Subject: Added VIC-20 + 8K PRG example --- src/example/Makefile | 5 ++++- src/example/vic20+8k.asm | 30 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 src/example/vic20+8k.asm (limited to 'src/example') diff --git a/src/example/Makefile b/src/example/Makefile index 629314a..5d2d326 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 + prg.prg hex.hex vic20.prg vic20+8k.prg CASM = ../casm all: $(ALL) $(CASM) @@ -64,6 +64,9 @@ hex.hex: emucpm.z80 $(CASM) vic20.prg: vic20.asm $(CASM) $(CASM) vic20.asm +vic20+8k.prg: vic20+8k.asm $(CASM) + $(CASM) vic20+8k.asm + clean: rm -f $(ALL) diff --git a/src/example/vic20+8k.asm b/src/example/vic20+8k.asm new file mode 100644 index 0000000..32de0d7 --- /dev/null +++ b/src/example/vic20+8k.asm @@ -0,0 +1,30 @@ + ; Simple example C64 code + ; + + cpu 6502 + + option codepage,cbm + + option output-file,vic20+8k.prg + option output-format,prg + option prg-start,start + option prg-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 -- cgit v1.2.3