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.

Mother 3/SAR block: Difference between revisions

From Data Crystal
Jump to navigation Jump to search
m (Lelegofrog moved page MOTHER 3/SAR block to Mother 3/SAR block: title consistency with TCRF)
mNo edit summary
 
Line 1: Line 1:
{{subpage|game=MOTHER 3:Named data structures}}
{{subpage|game=Mother 3}}
==Overview==
==Overview==
SAR blocks contain pointers to battle graphic's data and the battle graphic's data.
SAR blocks contain pointers to battle graphic's data and the battle graphic's data.
Line 11: Line 11:
* <tt>..-.. (04)</tt> = "~sar" footer
* <tt>..-.. (04)</tt> = "~sar" footer


[[Category:MOTHER 3 named data structures|SAR]]
[[Category:Mother 3 named data structures|SAR]]
[[Category:MOTHER 3|SAR]]
[[Category:Mother 3|SAR]]

Latest revision as of 02:20, 20 May 2024

This is a sub-page of Mother 3.

Overview

SAR blocks contain pointers to battle graphic's data and the battle graphic's data. SAR blocks can contain other SAR blocks. It appears that only the most external SAR blocks need the footer, this is probably because there are pointers to the beginning of the next chunk of data for inner SAR blocks.

Format

  • 00-03 (04) = "sar " header
  • 04-07 (04) = Number of pointers
  • 0C-.. (Number of pointers*8) = 8 Byte pointers (Direct Pointer+Length of pointed data)
  • Number of pointers*8+8-.. (..) = Data
  • ..-.. (04) = "~sar" footer