Talk:Pokédex data structure (Generation III): Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
mNo edit summary
No edit summary
Line 9: Line 9:


:Thank you for your corrections. Have you looked at any of the other articles? - [[User:Zhen Lin|振霖]]<sub>[[User talk:Zhen Lin|T]]</sub> 01:55, 1 July 2007 (UTC)
:Thank you for your corrections. Have you looked at any of the other articles? - [[User:Zhen Lin|振霖]]<sub>[[User talk:Zhen Lin|T]]</sub> 01:55, 1 July 2007 (UTC)
Looked I have. Thought of possible changes too but I kinda forgot I guess... --[[User:Kyoufu Kawa|Kyoufu Kawa]] 16:46, 21 July 2007 (UTC)

Revision as of 16:46, 21 July 2007

"The MSB byte is always set to 0x08 (8), so this matches a BRANCH instruction (B) in assembly. For example, if the location is 0x123456, it will appear here as 0x08123456 (56 34 12 08)."

This is not right. Any reference to any location starts with the bank number. Branch instructions have nothing to do with this. They're not even close. The order of the bytes is just an endian issue: the ARM7 as used in the GBA is little-endian, just like 80x86 and Pentium processors.

The game's ROM image is mapped onto bank 8 in memory, so any offset in the file gets 0x8000000 added to it. --Kyoufu Kawa 19:35, 30 June 2007 (UTC)

Just an aside: the ARM7 has a switch that determines byte order. The one used on the GBA is permanently set to little-endian. --Kyoufu Kawa 19:42, 30 June 2007 (UTC)

Thank you for your corrections. Have you looked at any of the other articles? - 振霖T 01:55, 1 July 2007 (UTC)

Looked I have. Thought of possible changes too but I kinda forgot I guess... --Kyoufu Kawa 16:46, 21 July 2007 (UTC)