aboutsummaryrefslogtreecommitdiff
path: root/src/example/vic20.asm
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2024-04-11 18:22:46 +0100
committerIan C <ianc@noddybox.co.uk>2024-04-11 18:22:46 +0100
commit5263696a44cc4f2c23e53dd68af0c66efd1fd896 (patch)
tree9ba5ffe49ef39213d4ee30c97211c8e33990e0d3 /src/example/vic20.asm
parentc019aa4607fa177e7f9c5cfbe540abd9c4e103d3 (diff)
Added Vic-20 PRG output. Not sure BASIC stub is needed so checkin prior to
removal.
Diffstat (limited to 'src/example/vic20.asm')
-rw-r--r--src/example/vic20.asm24
1 files changed, 24 insertions, 0 deletions
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