summaryrefslogtreecommitdiff
path: root/src/randomcrap.S
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-10-17 18:20:36 +0200
committerTreeki <treeki@gmail.com>2012-10-17 18:20:36 +0200
commit3ef1114c2bebd29b55fc53986b3c942a55b8b642 (patch)
tree692a5f41998f072c95d643a7d4f049492235d4bc /src/randomcrap.S
parent5de76d2cb171b57cb9f4592c4404d208fde7cc81 (diff)
downloadkamek-3ef1114c2bebd29b55fc53986b3c942a55b8b642.tar.gz
kamek-3ef1114c2bebd29b55fc53986b3c942a55b8b642.zip
pushing my current star coins stuff
Diffstat (limited to 'src/randomcrap.S')
-rw-r--r--src/randomcrap.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/randomcrap.S b/src/randomcrap.S
index 0983763..d3a0388 100644
--- a/src/randomcrap.S
+++ b/src/randomcrap.S
@@ -223,6 +223,19 @@ UniversalFunctionLog:
addi r1, r1, 0x10
blr
+.global EndSCM
+EndSCM:
+ lis r3, SCMs@h
+ ori r3, r3, SCMs@l
+ mr r4, r31
+ crclr 4*cr1+eq
+ bl OSReport
+
+ lwz r31, 0xC(r1)
+ lwz r0, 0x14(r1)
+ mtlr r0
+ addi r1, r1, 0x10
+ blr
#AllocLog:
# stwu r1, -0x20(r1)
@@ -361,3 +374,4 @@ UniLogStr: .string "[ULog] returning %8x to: %x > %x > %x > %x > %x > %x\n"
#Alloced: .string "[AH] Allocated %p\n"
#WillFree: .string "[AH] Freeing %p which is %x bytes\n"
+SCMs: .string "Setting music to %d\n"