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/Window statistics table: Difference between revisions
Jump to navigation
Jump to search
GuyInSummers (talk | contribs) m (Moved clear after box.) |
mNo edit summary |
||
Line 105: | Line 105: | ||
This data is used for storage and variables by the control code parser. This range starts with two two-byte words followed a single byte known respectively as '''working memory''', '''active memory''', and '''secondary memory''', though these names may not be the most accurate. Following these are two words and a byte again to and from which the working, active, and secondary memories can be copied. After these bytes, the rest of this entry seems to be used to store strings. | This data is used for storage and variables by the control code parser. This range starts with two two-byte words followed a single byte known respectively as '''working memory''', '''active memory''', and '''secondary memory''', though these names may not be the most accurate. Following these are two words and a byte again to and from which the working, active, and secondary memories can be copied. After these bytes, the rest of this entry seems to be used to store strings. | ||
[[Category:Earthbound]] |
Revision as of 21:44, 20 November 2005
Window statistics table | |
Game | [[EarthBound]] |
Start Address | 0x008650 |
End Address | 0x0088DF |
# of Entries | 8 (0x08) |
Entry Length | 82 bytes (0x52) |
Total Length | 656 bytes (0x290) |
Back to the [[EarthBound/{{{loc}}} map|{{{loc}}} map]] |
The window statistics table stores information about currently open windows.
Format
Unknown
- Length: 4 bytes (0x4)
- Offset within entry: 0 (0x00)
- Range of values: Unknown
Position in window existence table
- Length: 2 bytes (0x2)
- Offset within entry: 4 (0x04)
- Range of values: Number of an entry in the window existence table
Top left corner X-coordinate
- Length: 2 bytes (0x2)
- Offset within entry: 6 (0x06)
- Range of values: Absolute screen position, 8 ppu
Top left corner Y-coordinate
- Length: 2 bytes (0x2)
- Offset within entry: 8 (0x08)
- Range of values: Absolute screen position, 8 ppu
Box width
- Length: 2 bytes (0x2)
- Offset within entry: 10 (0x0A)
- Range of values: Length in 8 ppu units
Box height
- Length: 2 bytes (0x2)
- Offset within entry: 12 (0x0C)
- Range of values: Height in 8 ppu units
X-coordinate of text-drawing cursor
- Length: 2 bytes (0x2)
- Offset within entry: 14 (0x0E)
- Range of values: Pixels from top-left corner (?)
Y-coordinate of text-drawing cursor
- Length: 2 bytes (0x2)
- Offset within entry: 16 (0x10)
- Range of values: Pixels from top-left corner (?)
Unknown
- Length: 2 bytes (0x2)
- Offset within entry: 18 (0x12)
- Range of values: Unknown
Unknown (does bizarre things to text)
- Length: 1 byte (0x1)
- Offset within entry: 19 (0x13)
- Range of values: Unknown
Font
- Length: 1 byte (0x1)
- Offset within entry: 20 (0x14)
- Range of values: 0x00 - 0x04, other values glitch
The font being used to print text in this window.
- 0x00 = Normal
- 0x01 = Saturn
- 0x02 = Small Font #1
- 0x03 = Small Font #2 (has some glitching...)
- 0x04 = Coffee Sequence
Unknown
- Length: 2 bytes (0x2)
- Offset within entry: 21 (0x15)
- Range of values: Unknown
Control code variables
- Length: Unknown (likely the rest of the entry)
- Offset within entry: 23 (0x17)
- Range of values: Any values
This data is used for storage and variables by the control code parser. This range starts with two two-byte words followed a single byte known respectively as working memory, active memory, and secondary memory, though these names may not be the most accurate. Following these are two words and a byte again to and from which the working, active, and secondary memories can be copied. After these bytes, the rest of this entry seems to be used to store strings.