summaryrefslogtreecommitdiff
path: root/src/spritetex.S
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/spritetex.S84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/spritetex.S b/src/spritetex.S
index 50d2419..b24c77a 100755
--- a/src/spritetex.S
+++ b/src/spritetex.S
@@ -2,6 +2,9 @@
.extern GenerateRandomNumber
.extern BombExplodeState
.extern AbsValue
+.extern Cloud_death_execute
+.extern Cloud_execute
+
#ifndef __MWERKS__
.set r0,0; .set r1,1; .set r2,2; .set r3,3; .set r4,4
@@ -1344,6 +1347,78 @@ GLOW_LightBlock:
bctr
+.global CloudLT_Execute
+CloudLT_Execute:
+ lwz r8, 4(r31)
+
+ slwi r8, r8, 28
+ cmpwi r8, 1
+ beq CloudD_Execute
+
+ b Cloud_execute
+ blr
+
+CloudD_Execute:
+ b Cloud_death_execute
+ blr
+
+
+.global TEX_CloudLT_A
+TEX_CloudLT_A:
+ lwz r8, 4(r31)
+
+ slwi r8, r8, 28
+ cmpwi r8, 1
+
+ beq TEX_CloudLT_Aa
+
+ addi r4, r28, 0x2C
+ blr
+
+TEX_CloudLT_Aa:
+ lis r4, CloudA@h
+ ori r4, r4, CloudA@l
+ blr
+
+
+.global TEX_CloudLT_B
+TEX_CloudLT_B:
+ lwz r8, 4(r31)
+
+ slwi r8, r8, 28
+ cmpwi r8, 1
+
+ beq TEX_CloudLT_Ba
+
+ addi r4, r28, 0x38
+ blr
+
+TEX_CloudLT_Ba:
+ lis r4, CloudB@h
+ ori r4, r4, CloudB@l
+ blr
+
+
+.global TEX_CloudLT_C
+TEX_CloudLT_C:
+ lwz r8, 4(r31)
+
+ slwi r8, r8, 28
+ cmpwi r8, 1
+
+ beq TEX_CloudLT_Ca
+
+ addi r4, r28, 0x44
+ blr
+
+TEX_CloudLT_Ca:
+ lis r4, CloudC@h
+ ori r4, r4, CloudC@l
+ blr
+
+
+
+
.data
BomombDir:
.word 0x0400FC00
@@ -1465,4 +1540,13 @@ YoshiStrings:
.align 4
+CloudA:
+ .string "wny_mist.9"
+.align 4
+CloudB:
+ .string "wny_mist.10"
+.align 4
+CloudC:
+ .string "wny_mist.11"
+.align 4