;;; Arachnus_SetDeath ;;; 080238D8 (T) push r4,r14 080238DA (T) ldr r4,=EnemyOrientation ;\ 080238DC (T) mov r0,r4 ;| 080238DE (T) add r0,24h ;| 080238E0 (T) mov r2,0h ;} EnemyPose = 42h (dying) 080238E2 (T) mov r1,42h ;| 080238E4 (T) strb r1,[r0] ;/ 080238E6 (T) ldr r0,[r4,18h] ;\ 080238E8 (T) ldr r1,=8302D54h ;| 080238EA (T) cmp r0,r1 ;} If EnemyGraphicPointer != 8302D54h 080238EC (T) beq 8023908h ;/ 080238EE (T) str r1,[r4,18h] ; EnemyGraphicPointer = 8302D54h 080238F0 (T) strb r2,[r4,1Ch] ; Clear EnemyAnimationCounter 080238F2 (T) strh r2,[r4,16h] ; Clear EnemyAnimation 080238F4 (T) ldr r0,=0FF20h ;\ 080238F6 (T) strh r0,[r4,0Ah] ;| Set EnemyHitboxOffsets: 080238F8 (T) strh r2,[r4,0Ch] ;| -E0h 080238FA (T) add r0,98h ;} -48h 48h 080238FC (T) strh r0,[r4,0Eh] ;| 00h 080238FE (T) mov r0,48h ;| 08023900 (T) strh r0,[r4,10h] ;/ 08023902 (T) ldr r0,=8302D8Ch ; r0 parameter = 8302D8Ch 08023904 (T) bl 8012304h ; Execute subroutine Enemy_SetAttachedEnemyGraphics 08023908 (T) ldrh r1,[r4] ;\ 0802390A (T) mov r2,80h ;| 0802390C (T) lsl r2,r2,8h ;| 0802390E (T) mov r0,r2 ;| 08023910 (T) mov r2,0h ;} EnemyOrientation |= 8020h (dying and no-clip) 08023912 (T) orr r0,r1 ;| 08023914 (T) mov r1,20h ;| 08023916 (T) orr r0,r1 ;| 08023918 (T) strh r0,[r4] ;/ 0802391A (T) mov r0,r4 ;\ 0802391C (T) add r0,25h ;} Clear $Enemy25 0802391E (T) strb r2,[r0] ;/ 08023920 (T) mov r1,1h ;\ 08023922 (T) strh r1,[r4,14h] ;} EnemyHealth = 1 08023924 (T) add r0,7h ;\ 08023926 (T) strb r2,[r0] ;} Clear EnemyInvincibilityTimer 08023928 (T) sub r0,0Ch ;\ 0802392A (T) strb r2,[r0] ;} Clear EnemyPalette 0802392C (T) mov r0,2Ch ;\ 0802392E (T) strh r0,[r4,6h] ;} EnemyYPositionSpawn = 2Ch 08023930 (T) strh r1,[r4,8h] ; EnemyXPositionSpawn = 1 08023932 (T) mov r0,0BEh ; r0 parameter = BEh 08023934 (T) bl 800270Ch ; Execute subroutine 800270C (Sound effect?) 08023938 (T) pop r4 0802393A (T) pop r0 0802393C (T) bx r0 0802393E dw 00000h 08023940 dd 0030006BCh,008302D54h,00000FF20h,008302D8Ch