ref: b40cb88593938af583699ecd603949f59f7043ba
parent: ae1950503dc9fdafdc688817b5c0b932a83f1fc3
author: Bryan Bishop <kanzure@gmail.com>
date: Mon Jan 23 05:12:07 EST 2012
$039e -> HandleMidJump hg-commit-id: f18a7d446304
--- a/common.asm
+++ b/common.asm
@@ -421,7 +421,7 @@
call LoadGBPal
ld a,[$d736]
bit 6,a ; jumping down a ledge?
- call nz,$039e
+ call nz, HandleMidJump
ld a,[$cfc5] ; walking animation counter
and a
jp nz,.moveAhead\@ ; if the player sprite has not yet completed the walking animation
--- a/constants.asm
+++ b/constants.asm
@@ -95,6 +95,8 @@
W_WHICHPOKEMON EQU $CF92 ; which pokemon you selected
+W_WALKCOUNTER EQU $CFC5 ; walk animation counter
+
W_OPPONENTHP EQU $CFE6 ; active opponent's hp (16 bits)
W_OPPONENTNUMBER EQU $CFE8 ; active opponent's position in team (0 to 5)
W_OPPONENTSTATUS EQU $CFE9 ; active opponent's status condition
--- a/extras/gbz80disasm.py
+++ b/extras/gbz80disasm.py
@@ -568,6 +568,7 @@
"6581": "ItemUseNotTime",
"3a87": "AddNTimes",
"3dab": "IsInArray", #bank 3
+ "039e": "HandleMidJump",
}
def random_asm_label():