-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from ShadowSpeedrun/RC1
RC1
- Loading branch information
Showing
233 changed files
with
1,267 additions
and
129 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
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,50 @@ | ||
#To be inserted at 80178BC4 | ||
;RestoreTimeOnDeathChecks.asm | ||
|
||
;Normally we do not want to restore the timer to | ||
;the last checkpoint / save, but for Bosses we need to | ||
;reset the OG timer to keep functionality the same as OG. | ||
;We also only want to reset the New IGT if we are in select mode. | ||
|
||
;To check for if we are in a boss fight, we will do some bit math | ||
;on the Stage ID. Boss IDs are set as: Level Column - Boss - # | ||
;So 412 = Column 4 Third Boss = Black Bull 2. | ||
|
||
Start: | ||
;Load value of "Boss Selected" | ||
;into r18. (8057D748) | ||
lis r18, 0x8057 | ||
ori r17, r18, 0xD748 | ||
lwz r17, 0(r17) | ||
|
||
li r19, 100 | ||
divw r16, r17, r19 | ||
mullw r16, r16, r19 | ||
sub r17, r17, r16 | ||
|
||
cmpwi r17, 10 | ||
bge RestoreTimerOG | ||
blt End | ||
|
||
RestoreTimerOG: | ||
;Original Code | ||
;r4+148 = 8057D734 | ||
stfs f0, 148(r4) | ||
|
||
CheckSelectMode: | ||
;Load value of "Select Mode Flag" | ||
;into r18. (8057D8FE) | ||
lis r18, 0x8057 | ||
ori r18, r18, 0xD8FE | ||
lhz r18, 0(r18) | ||
cmpwi r18, 0 | ||
beq End | ||
|
||
ResetNewTimer: | ||
stfs f0, 0x268(r4) | ||
|
||
End: | ||
li r16, 0 | ||
li r17, 0 | ||
li r18, 0 | ||
li r19, 0 |
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
File renamed without changes.
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
Oops, something went wrong.