Argh, once again, I'm probably overlooking something very simple. But I still can't get the RLE code to work. I was able to load my background by saving it as *.nam and then reading loading the bytes. So that worked okay, but I would like to get RLE working since it would save some space if I were ever to make a larger game.
It seems straightforward, and I know it is, and yet....still no success.
At the top, below the ines lines, I do
Code: Select all
.rsset $0000 ;;start variables at ram location 0
PPU_DATA = $2007
PPU_ADDR = $2006
And I also do:
Code: Select all
.bank 0
.org $8000
unravel: .incbin "rle.asm"
and in blanking time I simply call the subroutine with:
Code: Select all
LoadBackground:
ldx #LOW(level)
ldy #HIGH(level)
jsr unrle
Where level is the lable to my *.rle file (i.e, level: .incbin "bgtest.rle") But I keep getting a "jsr unrle undefined symbol in operand field" error. Any clues?
thanks