From 5263696a44cc4f2c23e53dd68af0c66efd1fd896 Mon Sep 17 00:00:00 2001 From: Ian C Date: Thu, 11 Apr 2024 18:22:46 +0100 Subject: Added Vic-20 PRG output. Not sure BASIC stub is needed so checkin prior to removal. --- src/example/vic20.asm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/example/vic20.asm (limited to 'src/example/vic20.asm') diff --git a/src/example/vic20.asm b/src/example/vic20.asm new file mode 100644 index 0000000..8bb222d --- /dev/null +++ b/src/example/vic20.asm @@ -0,0 +1,24 @@ + ; Simple example C64 code + ; + + cpu 6502 + + option codepage,cbm + + option output-file,vic20.prg + option output-format,prg + option prg-start,start + option prg-system,vic20 + + org $1100 + +main: + lda #0 + clc +loop: + sta 36879 + adc #1 + jmp loop + +start: + jmp main -- cgit v1.2.3