diff options
author | Ian C <ianc@noddybox.co.uk> | 2024-04-11 22:55:50 +0100 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2024-04-11 22:55:50 +0100 |
commit | c59d0a6ce3e709171ba8815b0830797a4b55c492 (patch) | |
tree | 4bf7df316636f82fe0c1f424a0c556c1da8a243d /src/example/vic20+8k.asm | |
parent | e12820746e064f366f8d10488941fdaee0f40e12 (diff) |
Added VIC-20 + 8K PRG example
Diffstat (limited to 'src/example/vic20+8k.asm')
-rw-r--r-- | src/example/vic20+8k.asm | 30 |
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 |