It is currently Tue Nov 12, 2019 6:31 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Name Table Help
PostPosted: Thu Nov 07, 2019 4:04 pm 
Offline

Joined: Thu Nov 07, 2019 3:49 pm
Posts: 1
All the information I can find on the name table is frustratingly vague, basically just saying that each byte points to the pattern table without specifying how. Based on this diagram from the wiki, which describes interpretation of pattern table addresses, it looks like the byte in the name table is probably the RRRR CCCC and the H bit is in the PPU control register. Can anyone confirm that this is the case?

Code:
DCBA98 76543210
---------------
0HRRRR CCCCPTTT
|||||| |||||+++- T: Fine Y offset, the row number within a tile
|||||| ||||+---- P: Bit plane (0: "lower"; 1: "upper")
|||||| ++++----- C: Tile column
||++++---------- R: Tile row
|+-------------- H: Half of sprite table (0: "left"; 1: "right")
+--------------- 0: Pattern table is at $0000-$1FFF


Top
 Profile  
 
 Post subject: Re: Name Table Help
PostPosted: Thu Nov 07, 2019 4:28 pm 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 4230
The bytes in the nametables:
32x32 nametable, "32" rows. (last two rows are actually the attribute tables)
5 bits for Column, 5 bits for Row, 2 bits for nametable number, 1 bit to indicate that it's not the pattern tables
001xNNYYYYYXXXXX


How they relate to the pattern tables:
000CTTTTTTTT0000
T = tile number 8 bits
C = PPU control, whether to use the left or right pattern table
That gives you the address of the first byte of the tile.

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Google [Bot] and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group