Posts: 4
Threads: 0
Joined: Mar 2018
03-27-2018, 11:32 PM
(This post was last modified: 03-27-2018, 11:38 PM by bacon_consumes_all.)
I made the checkpoints into star coins. There are a bunch of NOPs at the end because Nintendo sucks at optimizing.
//only 3 checkpoints to spawn star
.orga 0xAE0CC
ADDIU T0, R0, 0x03 // hiddenstarinit
.orga 0xAE12C
ADDIU AT, R0, 0x03 // hiddenstarloop
.orga 0xAE214
ORI AT, R0, 0x03 // checkpointloop
.orga 0xAE1C8
OR A1, A0, R0 // this line really bothered me
//re-do playsound
.orga 0xAE240
LUI A0, 0x700E ; wrong answer sound, change in the sound tool
JAL 0x2CA144
ORI A0, A0, 0x8081
//add 3 to coin count
LUI T4, 0x8034
LH T5, 0xB262(T4)
ADDIU T6, T5, 0x03
SH T6, 0xB262(T4)
LUI T5, 0x8036
LW T5, 0x1160 (T5)
SH R0, 0x74 (T5)
LW RA, 0x14 (SP)
JR RA
ADDIU SP, SP, 0x20
NOP
NOP
NOP
NOP
NOP
//behavior
.orga 0x21DD1C
.dw 0x00060000
.dw 0x11010001
.dw 0x23000000, 0x00640064
.dw 0x10050000
.dw 0x08000000
.dw 0x0F130800
.dw 0x0C000000, 0x802F31BC
.dw 0x09000000
y-you too.