Prev: B3F0 Up: Map Next: B44A
B416: Place Trashman
Used by the routines at StartGame, B591 and BF9F.
PlaceTrashman B416 LD IX,$C36E IX=Player_Data.
B41A BIT 0,(IX+$18) Jump to PlaceTrashman_0 if bit 0 of *IX+18 is not set.
B41E JR Z,PlaceTrashman_0
B420 BIT 7,(IX+$18) Return if bit 7 of *IX+18 is set.
B424 RET NZ
PlaceTrashman_0 B425 RES 7,(IX+$18) Reset bit 7 of *IX+18.
B429 CALL TrashmanAttributes_Copier Call TrashmanAttributes_Copier.
B42C LD IX,$C36E IX=Player_Data.
B430 CALL DrawTrashmanSprite Call DrawTrashmanSprite.
B433 BIT 1,(IX+$17) Jump to PlaceTrashman_1 if bit 1 of *IX+17 is set.
B437 JR NZ,PlaceTrashman_1
B439 CALL $B4B8 Call B4B8.
B43C CALL $B469 Call B469.
B43F RET Return.
PlaceTrashman_1 B440 BIT 0,(IX+$18) Return if bit 0 of *IX+18 is not set.
B444 RET Z
B445 SET 7,(IX+$18) Set bit 7 of *IX+18.
B449 RET Return.
Prev: B3F0 Up: Map Next: B44A