I'm trying to code an emulator in C# so I can load it on my 360.
Right now my question is fairly simple, but I can't find an answer anywhere.
Everywhere I look says that you load SPR_RAM from the CHR_ROM, 1 byte thru 2003/2004 or an entire page thru 4014. According to nestech Section K, the 4 bytes for a given sprite are:
a)y-coordinates - 1
b)tile index
c)attributes - including v and h flip and color bits
d)x-coordinates
So here's the question:
Since CHR_ROM is just 8x8 pixel info, where do the 4-bytes that are supposed come from? I realize that the Y is the scanline a and X is where on the scanline it appears, but where do you get the attributes and the tile index?
Right now my question is fairly simple, but I can't find an answer anywhere.
Everywhere I look says that you load SPR_RAM from the CHR_ROM, 1 byte thru 2003/2004 or an entire page thru 4014. According to nestech Section K, the 4 bytes for a given sprite are:
a)y-coordinates - 1
b)tile index
c)attributes - including v and h flip and color bits
d)x-coordinates
So here's the question:
Since CHR_ROM is just 8x8 pixel info, where do the 4-bytes that are supposed come from? I realize that the Y is the scanline a and X is where on the scanline it appears, but where do you get the attributes and the tile index?