ref: 122d715484b79aba71d79caf148bac4a2ec441a5
dir: /engine/overworld/clear_variables.asm/
ClearVariablesOnEnterMap:: ld a, SCREEN_HEIGHT_PX ld [hWY], a ld [rWY], a xor a ld [hAutoBGTransferEnabled], a ld [wStepCounter], a ld [wLoneAttackNo], a ld [hJoyPressed], a ld [hJoyReleased], a ld [hJoyHeld], a ld [wActionResultOrTookBattleTurn], a ld [wUnusedD5A3], a ld hl, wCardKeyDoorY ld [hli], a ld [hl], a ld hl, wWhichTrade ld bc, wStandingOnWarpPadOrHole - wWhichTrade call FillMemory ret