diff --git a/5/addresses_SNES_PSX.tsv b/5/addresses_SNES_PSX.tsv index 37fb3eb..e710e52 100644 --- a/5/addresses_SNES_PSX.tsv +++ b/5/addresses_SNES_PSX.tsv @@ -1,4 +1,10 @@ Label SNES PSX_file PSX_offset format Comment +ptrs_worldmap_event_replacements 0x006ABD 6 of u16 5 worlds + the end address +worldmap_event_replacements.0 0x00726C 61 of WorldMapEventReplacement hardcoded of above +worldmap_event_replacements.1 0x0073DA 53 of WorldMapEventReplacement hardcoded of above +worldmap_event_replacements.2 0x007518 106 of WorldMapEventReplacement hardcoded of above +worldmap_event_replacements.3 0x007794 1 of WorldMapEventReplacement hardcoded of above +worldmap_event_replacements.4 0x00779A 98 of WorldMapEventReplacement hardcoded of above character_battle_sprite_stone_palette 0x00F807 N/A N/A 16 of ColorBGR555 Also 0x199835 character_battle_sprite_disabled_palette 0x00F867 /mnu/memsave.bin 0x000034 16 of ColorBGR555 locations_bg_palettes 0x03BB00 /nar/ff5_binx.bin 0x03BF80 43 of 128 of ColorBGR555 @@ -19,7 +25,7 @@ worldmap_compressed_tilesets 0x070000 tilesets 0 up to 0x434 worldmap_compressed_tilesets2 0x080000 tilesets 0x434 up to 0x500 ptrs_jp_speech 0x082220 2160 of u16 ptrs_extended_event_data 0x083320 1940 of u24 -extended_event_data 0x0849DF See above for addresses +extended_event_data 0x0849DC See above for addresses jp_speech 0x0A0000 See 0x082220 for offsets ptrs_tilemaps 0x0B0000 328 of u16 tilemaps 0x0B0290 See above for offsets diff --git a/5/structs/SNES.tsv b/5/structs/SNES.tsv index d0dfea4..ccb7032 100644 --- a/5/structs/SNES.tsv +++ b/5/structs/SNES.tsv @@ -197,3 +197,10 @@ u8 palette_id u8 23 u8 24 u8 music_id + +struct WorldMapEventReplacement +u8 y +u8 x +u8 num_bytes +u8 event_flag # Add 0x1D0 to this for actual event flag +u16 ptr_bytes # Read num_bytes from this address (0xC0 bank implied, so just from the start of the ROM)