summaryrefslogtreecommitdiff
path: root/src/music.S
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-03-15 02:54:33 +0100
committerTreeki <treeki@gmail.com>2012-03-15 02:54:33 +0100
commite88fd1dcef52d4375fef655918886fc14bb1f40c (patch)
treef081b14a420331258665a58ad31be54b13b1c655 /src/music.S
parent18a6c3dbe01f484b346923ebc53f674c1e4a5101 (diff)
downloadkamek-e88fd1dcef52d4375fef655918886fc14bb1f40c.tar.gz
kamek-e88fd1dcef52d4375fef655918886fc14bb1f40c.zip
optimisations to reduce code size
Diffstat (limited to '')
-rw-r--r--src/music.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/music.S b/src/music.S
index 59c86a0..93c57dc 100644
--- a/src/music.S
+++ b/src/music.S
@@ -6,10 +6,23 @@
.extern sprintf
.global HaxMusic
+# Without Drums: Type 0
+# Athletic, Castle(Siro)
+
+# With Drums: Type 1
+# Overworld(Chijou), ...
+
HaxMusic:
cmpwi r3, 100
bltlr
+ li r4, 0 # Type: No Yoshi Drums
+ cmpwi r3, 200
+ blt Begin
+
+ li r4, 1
+Begin:
+
stwu r1, -0x10(r1)
mflr r0
stw r0, 0x14(r1)