Prev: C0DD Up: Map Next: C12B
C106: Fill in a dropped charm's record
Used by the routine at pickup_object.
The size is 5 x 5 x 12; the flags byte and the address of its entry in special_objs_tbl come back from the carried slot; the room is the player's. Bit 0 of +$0D tells upd_96_to_102 it has just been put down.
Input
IY the record, its type and position already set
drop_object C106 LD (IY+$04),$05 width, depth, height
C10A LD (IY+$05),$05
C10E LD (IY+$06),$0C
C112 POP HL +$07 flags from the slot
C113 LD A,(HL)
C114 INC HL
C115 LD (IY+$07),A
C118 LD A,(IX+$08) the room: the player's
C11B LD (IY+$08),A
C11E LD A,(HL) +$10: its entry in the special-object table
C11F INC HL
C120 LD (IY+$10),A
C123 LD A,(HL)
C124 LD (IY+$11),A
C127 SET 0,(IY+$0D) just dropped
Prev: C0DD Up: Map Next: C12B