aboutsummaryrefslogtreecommitdiff
path: root/src/example/vic20+8k.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/example/vic20+8k.asm')
-rw-r--r--src/example/vic20+8k.asm30
1 files changed, 30 insertions, 0 deletions
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