diff options
author | Ian C <ianc@noddybox.co.uk> | 2021-09-21 21:17:14 +0100 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2021-09-21 21:17:14 +0100 |
commit | 25302a2513307a3a41b76f5e568f0916713c0620 (patch) | |
tree | 64e005fc00187b959b74aeb4c0a3b90449df7605 /src/example | |
parent | 4615bf4b669af244f7a2aa71af60cb363b08c472 (diff) |
Imported V1.9V1.9
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/Makefile | 11 | ||||
-rw-r--r-- | src/example/prg.asm | 24 | ||||
-rw-r--r-- | src/example/t64.asm | 24 |
3 files changed, 56 insertions, 3 deletions
diff --git a/src/example/Makefile b/src/example/Makefile index 93bef30..a76a21f 100644 --- a/src/example/Makefile +++ b/src/example/Makefile @@ -20,7 +20,8 @@ # Makefile for examples # -ALL = spectrum.tap c64.t64 zx81.p gb.gb vcs.bin snes.sfc nes.nes cpc.cdt +ALL = spectrum.tap t64.t64 zx81.p gb.gb vcs.bin snes.sfc nes.nes cpc.cdt \ + prg.prg CASM = ../casm all: $(ALL) $(CASM) @@ -33,8 +34,8 @@ remake: clean all spectrum.tap: spectrum.asm $(CASM) $(CASM) spectrum.asm -c64.t64: c64.asm $(CASM) - $(CASM) c64.asm +t64.t64: t64.asm $(CASM) + $(CASM) t64.asm cpc.cdt: cpc.asm $(CASM) $(CASM) cpc.asm @@ -54,5 +55,9 @@ snes.sfc: snes.asm $(CASM) nes.nes: nes.asm tiles.chr nes.pal $(CASM) $(CASM) nes.asm +prg.prg: prg.asm $(CASM) + $(CASM) prg.asm + clean: rm -f $(ALL) + 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 diff --git a/src/example/t64.asm b/src/example/t64.asm new file mode 100644 index 0000000..b5a6ded --- /dev/null +++ b/src/example/t64.asm @@ -0,0 +1,24 @@ + ; Simple example C64 code + ; + + cpu 6502 + + option codepage,cbm + + option output-file,t64.t64 + option output-format,t64 + option t64-start,start + + org $820 + +main: + lda #0 + clc +loop: + sta 53280 + adc #1 + and #$0f + jmp loop + +start: + jmp main |