diff options
author | Colin Noga <Tempus@Spectrum-Song.local> | 2011-10-09 01:48:06 -0500 |
---|---|---|
committer | Colin Noga <Tempus@Spectrum-Song.local> | 2011-10-09 01:48:06 -0500 |
commit | d4ba9bf11d4786c4df5e94c5241492c4eb43c2b6 (patch) | |
tree | 4afe8cd5a8fe9c8eba3031cc20a02ed08a0c9b43 /src/bossThwompaDomp.S | |
parent | f35befab481e013d76631baf6abec5f69ff703a6 (diff) | |
download | kamek-d4ba9bf11d4786c4df5e94c5241492c4eb43c2b6.tar.gz kamek-d4ba9bf11d4786c4df5e94c5241492c4eb43c2b6.zip |
Added a whole bunch of boss crap, soundplayers, retextures, and some mrsun improvements.
Diffstat (limited to 'src/bossThwompaDomp.S')
-rw-r--r-- | src/bossThwompaDomp.S | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/bossThwompaDomp.S b/src/bossThwompaDomp.S new file mode 100644 index 0000000..66aef2e --- /dev/null +++ b/src/bossThwompaDomp.S @@ -0,0 +1,40 @@ +#ifndef __MWERKS__ +.set r0,0; .set r1,1; .set r2,2; .set r3,3; .set r4,4 +.set r5,5; .set r6,6; .set r7,7; .set r8,8; .set r9,9 +.set r10,10; .set r11,11; .set r12,12; .set r13,13; .set r14,14 +.set r15,15; .set r16,16; .set r17,17; .set r18,18; .set r19,19 +.set r20,20; .set r21,21; .set r22,22; .set r23,23; .set r24,24 +.set r25,25; .set r26,26; .set r27,27; .set r28,28; .set r29,29 +.set r30,30; .set r31,31; .set f0,0; .set f1,1; .set f2,2 +.set f3,3; .set f4,4; .set f5,5; .set f6,6; .set f8,8 +.set f31,31; .set f30,30 +#endif + + +.text + +.extern OSReport +.extern ThwompaDompMoveC__FP5dEn_c + +.align 4 + + + +.global ThwompaDompMove +ThwompaDompMove: + + # Registers I can't clobber - r0, r3, r30, r31 + # r3 is self + + subi r0, r4, 1 + + + # Load settings and make sure it's thwompy + lwz r4, 4(r3) + slwi r4, r4, 28 + + cmpwi r4, 1 + b ThwompaDompMoveC__FP5dEn_c + + blr + |