summaryrefslogtreecommitdiff
path: root/src/anotherhax.S
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-03-12 23:17:12 +0100
committerTreeki <treeki@gmail.com>2011-03-12 23:17:12 +0100
commit7d4e4c0b34a613dd3c0220475ae4e448197522c1 (patch)
tree4f5cee367de3fdef4f9a7c84af59ffe76a2bb1c3 /src/anotherhax.S
downloadkamek-7d4e4c0b34a613dd3c0220475ae4e448197522c1.tar.gz
kamek-7d4e4c0b34a613dd3c0220475ae4e448197522c1.zip
initial commit. now I can start playing with stuff!
Diffstat (limited to 'src/anotherhax.S')
-rw-r--r--src/anotherhax.S23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/anotherhax.S b/src/anotherhax.S
new file mode 100644
index 0000000..ca0a658
--- /dev/null
+++ b/src/anotherhax.S
@@ -0,0 +1,23 @@
+.set sp, 1
+
+.extern continueFromFlagObjCheck
+.extern returnFromFlagObjCheck
+
+.global fix38WithJumpCoin
+
+.text
+
+fix38WithJumpCoin:
+ # hacky fix because I can't figure out how to do it the right way
+
+ # check actor type for EN_COIN_JUMP
+ lhz r0, 8(r3)
+ cmplwi r0, 403
+ bne dontContinue
+ b continueFromFlagObjCheck
+dontContinue:
+
+ # it wasn't that, so just return 0
+ li r3, 0
+ b returnFromFlagObjCheck
+