summaryrefslogtreecommitdiff
path: root/asm/src/code_08003FC4.s
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2023-12-31 17:29:08 -0800
committertheo3 <arisstephenson2@gmail.com>2023-12-31 17:34:02 -0800
commit37ac9cb0fb2d9ccb64286bab2cdf648e6f2541c5 (patch)
tree1556b8aba35a82f1cc0d538b93251a1b401f32f5 /asm/src/code_08003FC4.s
parent5049daabc59d113152143d123aea2798d9487a0c (diff)
document tile asm functions
Diffstat (limited to 'asm/src/code_08003FC4.s')
-rw-r--r--asm/src/code_08003FC4.s48
1 files changed, 24 insertions, 24 deletions
diff --git a/asm/src/code_08003FC4.s b/asm/src/code_08003FC4.s
index 362f7d8d..ff872eb4 100644
--- a/asm/src/code_08003FC4.s
+++ b/asm/src/code_08003FC4.s
@@ -621,26 +621,26 @@ _0800439C: .4byte gSpritePtrs
_080043A0: .4byte gSpritePtrs
_080043A4: .4byte gGFXSlots+4
- thumb_func_start sub_080043A8
-sub_080043A8: @ 0x080043A8
- movs r1, #0xb
- b _080043B6
-
- thumb_func_start CreateChestSpawner
-CreateChestSpawner: @ 0x080043AC
- movs r1, #0xc
- b _080043B6
-
- thumb_func_start sub_080043B0
-sub_080043B0: @ 0x080043AC
- movs r1, #0x52
- b _080043B6
-
- thumb_func_start CreateItemOnGround
-CreateItemOnGround: @ 0x080043B4
- movs r1, #0
-
-_080043B6:
+ thumb_func_start CreateDrownFX
+CreateDrownFX: @ 0x080043A8
+ movs r1, #0xb // FX_WATER_SPLASH
+ b create_fx
+
+ thumb_func_start CreateLavaDrownFX
+CreateLavaDrownFX: @ 0x080043AC
+ movs r1, #0xc // FX_LAVA_SPLASH
+ b create_fx
+
+ thumb_func_start CreateSwampDrownFX
+CreateSwampDrownFX: @ 0x080043AC
+ movs r1, #0x52 // FX_GREEN_SPLASH
+ b create_fx
+
+ thumb_func_start CreatePitFallFX
+CreatePitFallFX: @ 0x080043B4
+ movs r1, #0 // FX_FALL_DOWN
+
+create_fx:
push {r4, lr}
adds r4, r0, #0
movs r0, #0xf
@@ -648,10 +648,10 @@ _080043B6:
bl CreateObject
cmp r0, #0
- beq _080043E0 @ Branch if entity could not be created
+ beq _080043E0
movs r1, #0x48
- ldr r1, [r4, r1] @ Unused?
+ ldr r1, [r4, r1] // load hitbox (unused)
ldrh r3, [r4, #0x2e]
strh r3, [r0, #0x2e]
@@ -664,11 +664,11 @@ _080043B6:
ldrb r3, [r4, #8]
- cmp r3, #3 @ Is the spawner an enemy?
+ cmp r3, #3 // is parent entity an enemy?
bne _080043E0
movs r1, #1
- strb r1, [r0, #0xb] @ Set base parameter
+ strb r1, [r0, #0xb] // copy entity.type2
_080043E0:
adds r0, r4, #0