Prev: C00E Up: Map Next: C06F
C041: Look for a charm to pick up
Used by the routine at handle_pickup_drop.
Clicks, latches the key, flags the panel for redraw, and enlarges the player's box by 4 in each dimension -- the old sizes go on the stack for done_pickup_drop -- so that a charm just out of reach still counts. The special objects in a room are always in the two records at $5C48 and $5C68.
start_pickup_drop C041 CALL toggle_audio_hw_x16
C044 LD A,$01
C046 LD ($5BB3),A
C049 LD ($5BB4),A
C04C LD B,$02
C04E LD L,(IX+$04) width, depth and height +4 each; the originals are pushed
C051 LD A,L
C052 ADD A,$04
C054 LD (IX+$04),A
C057 LD H,(IX+$05)
C05A LD A,H
C05B ADD A,$04
C05D LD (IX+$05),A
C060 PUSH HL
C061 LD L,(IX+$06)
C064 LD A,L
C065 ADD A,$04
C067 LD (IX+$06),A
C06A PUSH HL
C06B LD IY,$5C48 the first special-object record
Prev: C00E Up: Map Next: C06F