Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

EarthBound/Map Data/Palette Pointer Table: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
mNo edit summary
(Clean up description of table and fix category.)
Line 11: Line 11:
}}
}}


Each entry is a (little-endian) SNES address pointer to a group of tileset palettes located at offset [[EarthBound:Map_Data:Palettes|0x1A7EA7]]. There are 32 such groups, each of which contains varying numbers of palettes. In addition, each of those palettes hosts 6 subpalettes.
Table mapping between tileset numbers (from the [[EarthBound:Map_Data:Global_Tileset/Palette_Table|Global_Tileset/Palette_Table]]) and map palettes for that tileset.


{{stub}}
==Format==
 
Each entry is a (little-endian) SNES address pointer into the [[EarthBound:Map_Data:Palettes|map palettes]] (<tt>$DA7CA7</tt> or ROM offset <tt>0x1A7EA7</tt>), representing the start of the block of palettes for a tileset. Entries are indexed by tileset number (from the [[EarthBound:Map_Data:Global_Tileset/Palette_Table|Global_Tileset/Palette_Table]]), so the pointer for a particular tileset can be found using the formula <code>palette_pointer_address = $ef10fb + tileset_number * 4</code> or <code>palette_pointer_offset = 0x2f12fb + tileset_number * 4</code>. There are 32 valid tileset numbers, giving the Palette Pointer Table a total of 32 entries and 128 bytes.
 
[[Category:EarthBound:Map_Data|Palette Pointer Table]]

Revision as of 23:05, 15 June 2023

This is a sub-page of EarthBound/Map Data.

Palette Pointer Table
Game EarthBound
Start Address 0x2F12FB
End Address 0x2F137A
# of Entries 32
Entry Length 4 bytes (0x4)
Total Length 128 bytes (0x80)
Back to the ROM map

Table mapping between tileset numbers (from the Global_Tileset/Palette_Table) and map palettes for that tileset.

Format

Each entry is a (little-endian) SNES address pointer into the map palettes ($DA7CA7 or ROM offset 0x1A7EA7), representing the start of the block of palettes for a tileset. Entries are indexed by tileset number (from the Global_Tileset/Palette_Table), so the pointer for a particular tileset can be found using the formula palette_pointer_address = $ef10fb + tileset_number * 4 or palette_pointer_offset = 0x2f12fb + tileset_number * 4. There are 32 valid tileset numbers, giving the Palette Pointer Table a total of 32 entries and 128 bytes.