fork/training-mode-ce

git clone https://git.julia.blue/fork/training-mode-ce

AitchMerge pull request #242 from NickCondron/remove-asm96edbd1

techchase-camera
592 B28 linesraw
1    # To be inserted at 80099b74
2    .include "../../../Globals.s"
3    .include "../../../m-ex/Header.s"
4
5    # Get Airdodge Angle
6    mr r3, r31
7    branchl r12, Joystick_Angle_Retrieve
8    stfs f1, TM_AirdodgeAngle(r31)
9
10    lwz r3, 0x10(r31)
11    cmpwi r3, ASID_JumpF
12    beq GetHopType
13    cmpwi r3, ASID_JumpB
14    beq GetHopType
15
16InvalidHopType:
17    li r3, 2
18    stw r3, TM_ShortOrFullHop(r31)
19    b Exit
20
21GetHopType:
22    # Get Hop Type
23    # read state_var1, which is 0 for fullhop and 1 for shorthop
24    lwz r3, 0x2340(r31)
25    stw r3, TM_ShortOrFullHop(r31)
26
27Exit:
28    addi r3, r29, 0