If you are still using the old URL (datacrystal.romhacking.net), please update your bookmarks! The old URL may stop working at any time.
The current URL is datacrystal.tcrf.net.
The current URL is datacrystal.tcrf.net.
EarthBound/Map Data/Palette Pointer Table: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Clean up description of table and fix category.) |
||
Line 11: | Line 11: | ||
}} | }} | ||
Table mapping between tileset numbers (from the [[EarthBound:Map_Data:Global_Tileset/Palette_Table|Global_Tileset/Palette_Table]]) and map palettes for that tileset. | |||
==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.