aboutsummaryrefslogtreecommitdiff
path: root/src/example/vic20.asm
diff options
context:
space:
mode:
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