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/vic20+8k.asm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/example/vic20+8k.asm (limited to 'src/example/vic20+8k.asm') 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