Prev: EC3B Up: Map Next: EC75
EC4C: Show a carried thing in the panel's box
Used by the routines at PICK_UP_LOOK_ON and MAIN_LOOP.
The author's INFOR (named by its calls in the leftover source text). Clears the panel's box and prints the number of the carried place in use (CLEAR_THING_BOX), then draws the sprite of the object whose record is at HL in the box, at x 20, row 40: only the sprite's image, with the compositor's first two planes cleared, over what the box holds. Called when a thing is picked up (PICK_UP_LOOK_ON) and when a carried place that holds one is chosen (MAIN_LOOP).
Input
HL The thing's record
SHOW_THING_IN_USE EC4C PUSH HL clear the box and number it
EC4D CALL CLEAR_THING_BOX
EC50 LD HL,BUFFER_DA00 the first two planes cleared
EC53 LD B,$40
EC55 CALL CLEAR_BELOW
EC58 POP HL its sprite's width, height and address, +2 to +5
EC59 INC HL
EC5A INC HL
EC5B LD DE,SECOND_POINT
EC5E LD BC,$0004
EC61 LDIR
EC63 LD A,(SECOND_POINT) the width in bytes
EC66 SRL A
EC68 SRL A
EC6A SRL A
EC6C LD (DRAW_WIDTH),A
EC6F LD HL,(WORK_SPRITE) draw it in the box (placed by CLEAR_THING_BOX)
EC72 JP COMPOSITE_FROM_IX
Prev: EC3B Up: Map Next: EC75