Pokémon Crystal any% speedrun route: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
m (→‎Arbitrary code execution: Use the default MediaWiki style for tables)
m (Text replacement - "~" to "–")
Line 50: Line 50:
!Program counter!!Hex!!ASM!!In-game meaning!!In-game value!!Comments
!Program counter!!Hex!!ASM!!In-game meaning!!In-game value!!Comments
|-
|-
|$CD52 ~ $CD6F||00 (*30)||nop||<!-- TODO -->|| ||
|$CD52 $CD6F||00 (*30)||nop||<!-- TODO -->|| ||
|-
|-
|$CD70||D8||ret c|| rowspan="3" |Pointers to background map tiles|| rowspan="3" |$9BD8, $9BDA, $9BDC...||Jump not taken
|$CD70||D8||ret c|| rowspan="3" |Pointers to background map tiles|| rowspan="3" |$9BD8, $9BDA, $9BDC...||Jump not taken
Line 58: Line 58:
|$CD72||DA 9B DC||'''jp c, $DC9B'''||Jump taken
|$CD72||DA 9B DC||'''jp c, $DC9B'''||Jump taken
|-
|-
|$DC9B ~ $DC9E||00 (*4)||nop||Unused|| ||
|$DC9B $DC9E||00 (*4)||nop||Unused|| ||
|-
|-
|$DC9F||18 6F||'''jr 0x6F'''||Lucky ID||06255 (0x186F)||Jumps to $DD10
|$DC9F||18 6F||'''jr 0x6F'''||Lucky ID||06255 (0x186F)||Jumps to $DD10
Line 70: Line 70:
|$DD15||26 FB||'''ld h, 0xFB'''||Original Trainer ID of Cyndaquil||09979 (0x26FB)||hl = 0xFB6C
|$DD15||26 FB||'''ld h, 0xFB'''||Original Trainer ID of Cyndaquil||09979 (0x26FB)||hl = 0xFB6C
|-
|-
|$DD17 ~ $DD18||00 00||nop|| rowspan="2" |Experience of Cyndaquil<br /><br />|| rowspan="2" |205 (0x0000CD)||
|$DD17 $DD18||00 00||nop|| rowspan="2" |Experience of Cyndaquil<br /><br />|| rowspan="2" |205 (0x0000CD)||
|-
|-
| rowspan="2" |$DD19|| rowspan="2" |CD 00 32|| rowspan="2" |'''call $3200'''|| rowspan="2" |Calls WaitBGMap2, which calls DelayFrames;<br />a = 0x00, c = 0x00
| rowspan="2" |$DD19|| rowspan="2" |CD 00 32|| rowspan="2" |'''call $3200'''|| rowspan="2" |Calls WaitBGMap2, which calls DelayFrames;<br />a = 0x00, c = 0x00
Line 94: Line 94:
|$DD24||E9||'''jp hl'''||First byte of DVs of Cyndaquil||0xE9||Jumps to 0xFB6C (Echo RAM, equivalent to $DB6C)
|$DD24||E9||'''jp hl'''||First byte of DVs of Cyndaquil||0xE9||Jumps to 0xFB6C (Echo RAM, equivalent to $DB6C)
|-
|-
|$FB6C ~ $FB71||00 (*6)||nop||Unused|| ||
|$FB6C $FB71||00 (*6)||nop||Unused|| ||
|-
|-
|$FB72||00||nop||Index of current box (0-based)||Box 1||
|$FB72||00||nop||Index of current box (0-based)||Box 1||
|-
|-
|$FB73 ~ $FB74||00 00||nop||Unused|| ||
|$FB73 $FB74||00 00||nop||Unused|| ||
|-
|-
|$FB75||93||'''sub e'''|| rowspan="5" |Box 1 name||T||a = 0x01
|$FB75||93||'''sub e'''|| rowspan="5" |Box 1 name||T||a = 0x01