Skip to content

Commit

Permalink
Fixed up source code for All Floors Are Drop-Through
Browse files Browse the repository at this point in the history
  • Loading branch information
DRGN-DRC committed Feb 12, 2023
1 parent 0f59bb7 commit f0f16fa
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions Notes & Source Codes/Source Codes/All Floors Are Drop-Through.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,35 @@ All floors can be dropped through (and ceilings can be passed through) like stan
<https://smashboards.com/threads/all-floors-are-drop-through.513411/>
[DRGN]
Revision ---- DOL Offset ---- Hex to Replace ---------- ASM Code -
## Original code:

## The original verion of this code:
## NTSC 1.02 --- 0x8004CBD4 ---- 546305EE -> 38600100 # rlwinm r3,r3,0,23,23(00000100) -> li r3, 0x100
## ------------- 0x8004FD24 ---- AB240006 -> 3B200000 # lha r25, 0x0006 (r4) -> li r25, 0

# The original code modifies DataOffset_CheckIfOnDropThroughPlatform and ECB_StoreCeilingID+Type.
# This variation instead makes this change while in the debug menu, using the line menu item's 'target function'.
# Conveniently, the current value is updated before a menu item's target function is executed.
## The original code modifies DataOffset_CheckIfOnDropThroughPlatform and ECB_StoreCeilingID+Type.
## This variation instead makes this change while in the debug menu, using the line menu item's 'target function'.
## Conveniently, the current value is updated before a menu item's target function is executed.

NTSC 1.02 --- 0x80393BAC ----

387A0090 93810020
C862EF60 4CC63242
93810028 C8210020
C8010028 EC211028
93810018 EC001028
C082EF50 C8410018
EC210024 C002EF54
EC421828 EC4400B2
EC420824 EC420032
4BFB1AB5 7FE3FB78
BB210034 8001005C
CBE10050 38210058
7C0803A6 4E800020

->

# This is being stored at the end of Area 5 of USB/MCC region. It's stored as a static overwrite
# rather than an injected someplace so it can be referenced from a debug menu's line item function.

.macro SetWord address, value
lis r15, \address@h # Load the address to modify
Expand All @@ -36,4 +58,6 @@ SetWord 0x8004CBD4, 0x546305EE
SetWord 0x8004FD24, 0xAB240006

END:
blr
blr

------------- 0x802288E8 ---- 54630529 -> 00000000 # Debug Menu flag

0 comments on commit f0f16fa

Please sign in to comment.