-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(hammer): Fixes hammer charge attack distance (#2)
- Loading branch information
Showing
3 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
HammerChargeDistance: | ||
type: branch | ||
link: true | ||
func: NormaliseHammerCharge | ||
addr: 0x008b84d0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.text | ||
.align 4 | ||
|
||
.global NormaliseHammerCharge | ||
NormaliseHammerCharge: | ||
ldr r0, =0x8119d90 | ||
ldr r0, [r0] | ||
ldr r0, [r0,#0x14] | ||
fmsr s12, r0 | ||
mov r0, #0x40000000 | ||
fmsr s13, r0 | ||
fdivs s12, s12, s13 | ||
flds s0, [sp] | ||
fmuls s0, s0, s12 | ||
fsts s0, [sp] | ||
flds s0, [sp,#8] | ||
fmuls s0, s0, s12 | ||
fsts s0, [sp,#8] | ||
ldr r0, [r5] | ||
bx lr |