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 | |
parent | e12820746e064f366f8d10488941fdaee0f40e12 (diff) |
Added VIC-20 + 8K PRG example
-rw-r--r-- | src/example/Makefile | 5 | ||||
-rw-r--r-- | src/example/vic20+8k.asm | 30 |
2 files changed, 34 insertions, 1 deletions
diff --git a/src/example/Makefile b/src/example/Makefile index 629314a..5d2d326 100644 --- a/src/example/Makefile +++ b/src/example/Makefile @@ -21,7 +21,7 @@ # ALL = spectrum.tap t64.t64 zx81.p gb.gb vcs.bin snes.sfc nes.nes cpc.cdt \ - prg.prg hex.hex vic20.prg + prg.prg hex.hex vic20.prg vic20+8k.prg CASM = ../casm all: $(ALL) $(CASM) @@ -64,6 +64,9 @@ hex.hex: emucpm.z80 $(CASM) vic20.prg: vic20.asm $(CASM) $(CASM) vic20.asm +vic20+8k.prg: vic20+8k.asm $(CASM) + $(CASM) vic20+8k.asm + clean: rm -f $(ALL) 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 |