aboutsummaryrefslogtreecommitdiff
path: root/src/example/prg.asm
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2021-09-21 21:17:14 +0100
committerIan C <ianc@noddybox.co.uk>2021-09-21 21:17:14 +0100
commit25302a2513307a3a41b76f5e568f0916713c0620 (patch)
tree64e005fc00187b959b74aeb4c0a3b90449df7605 /src/example/prg.asm
parent4615bf4b669af244f7a2aa71af60cb363b08c472 (diff)
Imported V1.9V1.9
Diffstat (limited to 'src/example/prg.asm')
-rw-r--r--src/example/prg.asm24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/example/prg.asm b/src/example/prg.asm
new file mode 100644
index 0000000..7433117
--- /dev/null
+++ b/src/example/prg.asm
@@ -0,0 +1,24 @@
+ ; Simple example C64 code
+ ;
+
+ cpu 6502
+
+ option codepage,cbm
+
+ option output-file,prg.prg
+ option output-format,prg
+ option prg-start,start
+
+ org $820
+
+main:
+ lda #0
+ clc
+loop:
+ sta 53280
+ adc #1
+ and #$0f
+ jmp loop
+
+start:
+ jmp main