Before I move on to PPU emulation, I want to make sure I fully understand what name tables are used for, as it seems to be difficult to get hold of an exact definition. Here is what I think they are used for, please correct me if I am wrong.
"Each name table is $3C0 (960 bytes) in size, which corresponds with 32x30 or 960 8x8 tiles that make up the Nes's background. Each 8bit number in the name table is used as an indexed (from 0?) tile number.
For example, if the first byte in the relevent name table was set to $0A then that would mean that the first tile (top left of screen) will be retrieved from the following locations, and the other using the same logic (left to right, top to bottom).
tile address = VRAM address + (Size of tile in memory * name table entry ($0A))
Basically, the name table referes to each tile sequencially, so the first name table entry is a lookup nunber for the top left tile and last name table entry is used as a lookup number for the bottom right tile."
I know this is long but I just want to be sure that I have it right.
Is this correct?
Thanks for any replies
"Each name table is $3C0 (960 bytes) in size, which corresponds with 32x30 or 960 8x8 tiles that make up the Nes's background. Each 8bit number in the name table is used as an indexed (from 0?) tile number.
For example, if the first byte in the relevent name table was set to $0A then that would mean that the first tile (top left of screen) will be retrieved from the following locations, and the other using the same logic (left to right, top to bottom).
tile address = VRAM address + (Size of tile in memory * name table entry ($0A))
Basically, the name table referes to each tile sequencially, so the first name table entry is a lookup nunber for the top left tile and last name table entry is used as a lookup number for the bottom right tile."
I know this is long but I just want to be sure that I have it right.
Is this correct?
Thanks for any replies