From 64286bce86befc5b48a65c60d871dca8ef269257 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 6 Jun 2016 20:57:40 +0100 Subject: Tweaks to NES example to trial NES CHR editor. --- src/example/Makefile | 2 +- src/example/nes.asm | 3 +-- src/example/nes.pal | Bin 0 -> 16 bytes src/example/nestiles.neschr | Bin 0 -> 151314 bytes src/example/tiles.chr | Bin 4096 -> 8192 bytes 5 files changed, 2 insertions(+), 3 deletions(-) create mode 100755 src/example/nes.pal create mode 100755 src/example/nestiles.neschr (limited to 'src/example') diff --git a/src/example/Makefile b/src/example/Makefile index e92b2ec..f9f15db 100644 --- a/src/example/Makefile +++ b/src/example/Makefile @@ -48,7 +48,7 @@ vcs.bin: vcs.asm $(CASM) snes.sfc: snes.asm $(CASM) $(CASM) snes.asm -nes.nes: nes.asm $(CASM) +nes.nes: nes.asm tiles.chr nes.pal $(CASM) $(CASM) nes.asm clean: diff --git a/src/example/nes.asm b/src/example/nes.asm index 8228914..95f3a64 100644 --- a/src/example/nes.asm +++ b/src/example/nes.asm @@ -72,8 +72,7 @@ nmi: rti palette: - db 15, 0, 16, 48, 15, 1, 33, 49, 15, 6, 22, 38, 15, 9, 25, 41 - db 15, 0, 16, 48, 15, 1, 33, 49, 15, 6, 22, 38, 15, 9, 25, 41 + incbin "nes.pal" map: db 'H'-'@' diff --git a/src/example/nes.pal b/src/example/nes.pal new file mode 100755 index 0000000..bc99722 Binary files /dev/null and b/src/example/nes.pal differ diff --git a/src/example/nestiles.neschr b/src/example/nestiles.neschr new file mode 100755 index 0000000..ea73da6 Binary files /dev/null and b/src/example/nestiles.neschr differ diff --git a/src/example/tiles.chr b/src/example/tiles.chr index 9986eaf..0fbebab 100755 Binary files a/src/example/tiles.chr and b/src/example/tiles.chr differ -- cgit v1.2.3