From 77ee989fb01e30b66310ec736e5a38836193e3d2 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Sat, 23 May 2015 18:13:38 -0400 Subject: [PATCH] Add pcx2snes to build script. --- build.bat | 1 + pewpew.asm | 6 +++--- tiles.asm | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build.bat b/build.bat index 1e60844..ec3f17d 100644 --- a/build.bat +++ b/build.bat @@ -1,4 +1,5 @@ @echo off +pcx2snes tiles.pcx -otiles.asm -b2 -nTile -d wla-65816 -o pewpew.asm pewpew.o wlalink -vr wlalink.cfg pewpew.smc del *.o \ No newline at end of file diff --git a/pewpew.asm b/pewpew.asm index dadd886..da820e3 100644 --- a/pewpew.asm +++ b/pewpew.asm @@ -116,16 +116,16 @@ LoadPaletteAndTileData: lda #32 ; Palette entries for BG2 start at 32. sta CGADDR - - lda.l UntitledPalette, x + lda.l TilePalette, x sta CGDATA inx cpx #8 ; 8 bytes of palette data. bne - ; DMA 0 source address & bank. - ldx #UntitledData + ldx #TileData stx DMA0SRC - lda #:UntitledData + lda #:TileData sta DMA0SRCBANK ; DMA 0 transfer size. ; See the helpful comment in tiles.asm to find the size of the tile data. diff --git a/tiles.asm b/tiles.asm index 8b6c29e..cff67fb 100644 --- a/tiles.asm +++ b/tiles.asm @@ -1,6 +1,6 @@ ; Created with eKid's pcx2snes converter ; -UntitledData: +TileData: .db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 .db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 .db $07, $00, $18, $07, $20, $1F, $4C, $33, $50, $2F, $86, $79, $86, $79, $80, $7F @@ -26,7 +26,7 @@ UntitledData: .db $80, $00, $80, $00, $80, $00, $80, $00, $80, $00, $80, $00, $80, $00, $80, $00 .db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00 -UntitledPalette: +TilePalette: .db $1F, $7C, $00, $00, $FF, $7F, $1F, $02 ; 24 tiles (8 spaces)