So I started doing some NES coding.
I have a question. It's probably fairly newbie-ish...
I have incbin'd a file from YY-CHR. Basically, it's nametable and attribute table data I made for a title screen. I used a hex editor to look at the binary data of the YY-CHR file, and the format is like this:
0000 - 03BF: Name table
03C0 - 03FF: Attribute table
I want to copy all of it to the PPU with an incrementing register. However, I'm not sure how to...
Normally, I would do a simple loop containing:
LDA titlescreengfx, x
STA $2007
INX
However, since the data's more than 256 bytes big, x won't increment that big.
Of course, instead of .incbinning the data I have the following options:
- split the 1 kb file up into 4 parts
- .db the data and create labels every 256 bytes
...but for ease of use, I'd rather just .incbin the file. What method should I use to copy the file to the PPU?
Note: I'm using NESASM, but wouldn't be opposed to knowing about it in ASM6.
Another note: I know it's horrible inefficient to have a 1 kb file like that. If I need to, I'll compress the data with a simple compression, either RLE or LZ.
I have a question. It's probably fairly newbie-ish...
I have incbin'd a file from YY-CHR. Basically, it's nametable and attribute table data I made for a title screen. I used a hex editor to look at the binary data of the YY-CHR file, and the format is like this:
0000 - 03BF: Name table
03C0 - 03FF: Attribute table
I want to copy all of it to the PPU with an incrementing register. However, I'm not sure how to...
Normally, I would do a simple loop containing:
LDA titlescreengfx, x
STA $2007
INX
However, since the data's more than 256 bytes big, x won't increment that big.
Of course, instead of .incbinning the data I have the following options:
- split the 1 kb file up into 4 parts
- .db the data and create labels every 256 bytes
...but for ease of use, I'd rather just .incbin the file. What method should I use to copy the file to the PPU?
Note: I'm using NESASM, but wouldn't be opposed to knowing about it in ASM6.
Another note: I know it's horrible inefficient to have a 1 kb file like that. If I need to, I'll compress the data with a simple compression, either RLE or LZ.