Add pcx2snes to build script.

This commit is contained in:
Colin McMillen 2015-05-23 18:13:38 -04:00
parent 788d4a884b
commit 77ee989fb0
3 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,5 @@
@echo off @echo off
pcx2snes tiles.pcx -otiles.asm -b2 -nTile -d
wla-65816 -o pewpew.asm pewpew.o wla-65816 -o pewpew.asm pewpew.o
wlalink -vr wlalink.cfg pewpew.smc wlalink -vr wlalink.cfg pewpew.smc
del *.o del *.o

View File

@ -116,16 +116,16 @@ LoadPaletteAndTileData:
lda #32 ; Palette entries for BG2 start at 32. lda #32 ; Palette entries for BG2 start at 32.
sta CGADDR sta CGADDR
- -
lda.l UntitledPalette, x lda.l TilePalette, x
sta CGDATA sta CGDATA
inx inx
cpx #8 ; 8 bytes of palette data. cpx #8 ; 8 bytes of palette data.
bne - bne -
; DMA 0 source address & bank. ; DMA 0 source address & bank.
ldx #UntitledData ldx #TileData
stx DMA0SRC stx DMA0SRC
lda #:UntitledData lda #:TileData
sta DMA0SRCBANK sta DMA0SRCBANK
; DMA 0 transfer size. ; DMA 0 transfer size.
; See the helpful comment in tiles.asm to find the size of the tile data. ; See the helpful comment in tiles.asm to find the size of the tile data.

View File

@ -1,6 +1,6 @@
; Created with eKid's pcx2snes converter ; ; 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 $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 .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 $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 .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 .db $1F, $7C, $00, $00, $FF, $7F, $1F, $02
; 24 tiles (8 spaces) ; 24 tiles (8 spaces)