Monday, April 04, 2005

NES BIt Manipulation...

... is a pain!

In order to draw a sprite the nes creates a 4-bit value which it uses to index a color in a pallete. These 4-bits (conveniently) come from disparate locations in memory. The lower two bits come from a "pattern table" however they are 8 bytes apart. The upper two bits come from the "sprite table".

Simply, I must access three seperate locations in memory, selectively make them fit together, look up a color, and then plot to draw one pixel. I can't wait until this is done...

0 Comments:

Post a Comment

<< Home