Skip to content

Commit

Permalink
Notes & source codes moved from library to a separate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
DRGN-DRC committed Nov 21, 2021
1 parent d813a6b commit 318db15
Show file tree
Hide file tree
Showing 83 changed files with 1,191 additions and 238 deletions.
File renamed without changes.
File renamed without changes.

Large diffs are not rendered by default.

555 changes: 555 additions & 0 deletions Notes & Source Codes/Source Codes/Apply HFLR on Boot.asm

Large diffs are not rendered by default.

41 changes: 41 additions & 0 deletions Notes & Source Codes/Source Codes/Disable Dodges.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

Disable Dodges
Debug Menu options for both spot dodges and airdodges.
Controlled by debug menu flags at 0x80228900 and 0x80228904.
<https://smashboards.com/threads/disable-airdodge.446990/post-21719528>
[UnclePunch]
Revision ---- DOL Offset ---- Hex to Replace ---------- ASM Code -
NTSC 1.02 --- 0x8009980C ---- 7C0802A6 -> Branch

# Spot Dodges -
# Check the debug menu flag
lis r15, 0x8023 # 0x80228900
lwz r15, -0x7700(r15)
cmpwi r15, 0
beq+ OrigLine

li r3, 0
blr

OrigLine:
mflr r0
b 0

------------- 0x80099A58 ---- 7C0802A6 -> Branch

# Air Dodges -
# Check the debug menu flag
lis r15, 0x8023 # 0x80228904
lwz r15, -0x76FC(r15)
cmpwi r15, 0
beq+ OrigLine

li r3, 0
blr

OrigLine:
mflr r0
b 0

------------- 0x80228900 ---- 38600003 -> 00000000 # Spot Dodges debug menu flag
------------- 0x80228904 ---- 1CA30044 -> 00000000 # Air Dodges debug menu flag
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bl 0x803456A8 # Branchl to OSReport

# Check emulation/hardware environment
lis r3, 0x803D # Load first part of address to new console type strings
lis r15, 0x8000 # base address 80401618
lis r15, 0x8000
lwz r15, 0x2C(r15)
rlwinm r15,r15,0,3,3 # Apply mask of 0x10000000; anything with that bit should be emulation
cmplwi r15, 0
Expand All @@ -45,7 +45,45 @@ ori r3, r3, 0x4BD6
crclr 6

CallOsReport:
bl 0x803456A8 # Branchl to OSReport
bl 0x803456A8 # Branchl to OSReport to print above string

# Print Date/Time (args order different from vanilla)
bl 0x8000AFBC # Some kind of get-time pre-function
addi r4, sp, 8
bl 0x801692E8 # GetTimeAndDateOnStack
lbz r4, 0x000A (sp) # Get month
addi r3, r31, 284
lbz r5, 0x000B (sp) # Get day
crclr 6
lhz r6, 0x0008 (sp) # Get year
bl 0x803456A8 # Branchl to OSReport to print Date
lbz r4, 0x000C (sp)
addi r3, r31, 324
lbz r5, 0x000D (sp)
crclr 6
lbz r6, 0x000E (sp)
bl 0x803456A8 # Branchl to OSReport to print Time

# Print a single line for spacing
subi r3, r13, 0x77B8
crclr 6
bl 0x803456A8 # Branchl to OSReport

# Print 'Press LRAStart for restart'
lis r3, <<OSR_ResetInstructionsString>>@h
ori r3, r3, <<OSR_ResetInstructionsString>>@l
crclr 6
bl 0x803456A8 # Branchl to OSReport

# Return to normal execution
b 0x801600f8
b 0x80160154

# Putting this injection in the vanilla code space;
# nop remaining vanilla instructions for clarity.
# number of nops = (154 - 74 - len of this function) / 4
nop
nop
nop
nop
nop
nop
239 changes: 239 additions & 0 deletions Notes & Source Codes/Source Codes/Everyone Can Float.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@


-==-


Everyone Can Float v1.1
Modified with conditional checks for the Debug Menu by DRGN.
<https://smashboards.com/threads/everyone-can-float-v1-1.454171/>
[UnclePunch]
Revision ---- DOL Offset ---- Hex to Replace ---------- ASM Code -

## Original static overwrites (replaced with injection below)
## NTSC 1.02 ---- 0x6650C ------ 4082000C -> 60000000
## -------------- 0x66514 ------ 901A222C -> 981A2217

NTSC 1.02 --- 0x80069928 ---- 2c000009 -> Branch

# Check Debug Menu flag for activation
lis r15, 0x8023
lwz r15,-0x76F0(r15)
cmpwi r15,0
beq+ OrigCode

li r0, 1
stb r0,8727(r26)
b 0x80069938 # Jump strait to this address, ignoring the conditional branch

OrigCode:
cmpwi r0, 9 # Original line
b 0

------------- 0x8011BA54 ---- 7C0802A6 -> Branch

# Check Debug Menu flag for activation
3DE08023 81EF8910
2C0F0000 41A20090

9421FF00 BE810008
7C0802A6 900100FC
38A00000 808DAEB4
80C3002C C0040088
C0260624 FC000050
FC010040 4C401382
40820014 8006065C
5400052B 41820008
38A00001 88062217
2C000000 41820028
2C050000 41820020
38800001 3D808000
618C5504 7D8903A6
4E800421 38600001
48000008 38600000
800100FC 7C0803A6
BA810008 38210100
4E800020

7c0802a6
48000000

------------- 0x8011BAD8 ---- 7C0802A6 -> Branch

# Check Debug Menu flag for activation
3DE08023 81EF8910
2C0F0000 41A200A0

9421FF00 BE810008
7C0802A6 900100FC
80C3002C C0260084
C0029DE0 FC010040
4C401382 40820060
88062217 2C000000
41820054 808DAEB4
38A00001 C0040070
C0260624 FC010040
4C411382 41820014
8006065C 5400052B
40820008 38A00000
2C050000 41820020
38800001 3D808000
618C5504 7D8903A6
4E800421 38600001
48000008 38600000
800100FC 7C0803A6
BA810008 38210100
4E800020

7C0802A6
48000000

------------- 0x8006867C ---- 387E0000 -> Branch

# Check Debug Menu flag for activation
3DE08023 81EF8910
2C0F0000 41A2000C

38600001 987F2217
387E0000 48000000

------------- 0x80005504 ---- 00000000 -> Branch

# Check Debug Menu flag for activation
3DE08023 81EF8910
2C0F0000 41A20424

9421FF00 BE810008
7C0802A6 900100FC
7C7F1B78 83DF002C
7C9D2378 7FE3FB78
38800020 38A00000
38C00000 C0229510
C0429514 FC600890
3D808006 618C93AC
7D8903A6 4E800421
480000BD 7C6802A6
907E219C 480001FD
7C6802A6 907E21A0
3C608011 6063BD18
907E21A4 3C608011
6063BD3C 907E21A8
38600000 907E0084
7FC3F378 38800001
3D808007 618C500C
7D8903A6 4E800421
809E05E8 54602036
7CE4002E 7FE3FB78
389E060C 38A00000
38C004D4 4CC63182
3D808006 618C76F0
7D8903A6 4E800421
38800001 887E2219
50833E30 987E2219
38600000 987E2217
2C1D0000 4182000C
38800096 909E2348
800100FC 7C0803A6
BA810008 38210100
4E800020 4E800021
9421FF00 BE810008
7C0802A6 900100FC
7C7F1B78 83DF002C
7FE3FB78 3D808009
618C665C 7D8903A6
4E800421 2C030000
4082009C 7FE3FB78
3D808008 618CCD68
7D8903A6 4E800421
2C030000 41820048
48000261 7C6802A6
907E21A4 48000209
7C6802A6 907E21A8
4800013D 7C6802A6
907E21A0 4800006D
7C6802A6 907E219C
38600000 907E21C0
38600000 907E2344
4800003C 806DAEB4
C0030070 C03E0624
FC010040 4C411382
41820024 801E065C
5400052B 40820018
7FE3FB78 3D80800C
618CCDA8 7D8903A6
4E800421 800100FC
7C0803A6 BA810008
38210100 4E800020
4E800021 9421FF00
BE810008 7C0802A6
900100FC 7C7F1B78
83DF002C 807E2344
2C030000 40820030
806DAEB4 C0030070
C03E0624 FC010040
4C411382 41820018
801E065C 5400052B
4082000C 38600001
907E2344 800100FC
7C0803A6 BA810008
38210100 4E800020
4E800021 9421FF00
BE810008 7C0802A6
900100FC 7C7F1B78
83DF002C 807E2348
3863FFFF 907E2348
2C030000 4082001C
7FE3FB78 3D80800C
618CC730 7D8903A6
4E800421 48000004
800100FC 7C0803A6
BA810008 38210100
4E800020 4E800021
9421FF00 BE810008
7C0802A6 900100FC
7C7F1B78 83DF002C
807E2348 3863FFFF
907E2348 887E2210
5460E7FF 4182001C
38000000 500326F6
987E2210 C01E002C
FC000050 D01E002C
807E2348 2C030000
4181000C 38600001
907E2344 7FE3FB78
3D808006 618CF238
7D8903A6 4E800421
2C030000 40820034
807E2344 2C030000
4182001C 7FE3FB78
3D80800C 618CCDA8
7D8903A6 4E800421
48000010 7FE3FB78
38800000 4BFFFCAD
800100FC 7C0803A6
BA810008 38210100
4E800020 4E800021
9421FF00 BE810008
7C0802A6 900100FC
7C7F1B78 83DF002C
7FE3FB78 3C80800D
60845BF8 3D808008
618C2C74 7D8903A6
4E800421 800100FC
7C0803A6 BA810008
38210100 4E800020
4E800021 9421FF00
BE810008 7C0802A6
900100FC 7C7F1B78
83DF002C 807E2344
2C030000 4182001C
7FE3FB78 3D808008
618C4DB0 7D8903A6
4E800421 48000018
7FE3FB78 3D808011
618CBD18 7D8903A6
4E800421 800100FC
7C0803A6 BA810008
38210100 4E800020
00000000 48000000

------------- 0x80228910 ---- 54630529 -> 00000000 # Debug Menu flag
Loading

0 comments on commit 318db15

Please sign in to comment.