• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

Completed Target Test Ends After 9 Targets

djwang88

Smash Cadet
Joined
Mar 31, 2004
Messages
49
The Break the Targets community has had a few requests for this modification, so I took a crack at writing my first full assembly code in fifteen years. Borrowed the injection address from donny1221's "Target Test Never Ends" code.

Code:
-==-

Target Test Ends After 9 Targets
[djwang88]
Revision ---- DOL Offset ---- Hex to Replace ---------- ASM Code -
NTSC 1.02 --- 0x801C4344 ---- 3803FFFF -> Branch

cmpwi r3,2
bne- _normal
  subi r3,r3,1
_normal:
subi r0,r3,1
Code:
$Target Test Ends After 9 Targets [djwang88]
C21C4344 00000003
2C030002 40820008
3863FFFF 3803FFFF
60000000 00000000
 
Last edited:

djwang88

Smash Cadet
Joined
Mar 31, 2004
Messages
49
Made a small modification to prevent a potential endless game when hitting multiple targets on the same frame, plus a simple generator: https://djwang88.github.io/endcode.html

Code:
-==-

Target Test Ends After 9 Targets
[djwang88]
Revision ---- DOL Offset ---- Hex to Replace ---------- ASM Code -
NTSC 1.02 --- 0x801C4344 ---- 3803FFFF -> Branch

cmpwi r3,2
bne- _normal
  li r3,1
_normal:
subi r0,r3,1
Code:
C21C4344 00000003
2C030002 40820008
38600001 3803FFFF
60000000 00000000
 
Last edited:

djwang88

Smash Cadet
Joined
Mar 31, 2004
Messages
49
I made another update to this code, and now it STARTS the target counter at whatever number you specify, 9 in this case.

Code:
Target Counter Starts With 9 Targets
[djwang88]
Revision ---- DOL Offset ---- Hex to Replace ---------- ASM Code -
NTSC 1.02 --- 0x801C427C ---- 7FA00734 -> 38000009
Code:
041C427C 38000009
 
Top Bottom