Prev: 45631 Up: Map Next: 45670
45641: Display "YOU ARE NOT CARRYING ANYTHING" window and set zero flag if Magic Knight's inventory (carrying) is empty
Used by the routines at 41748, 42257, 42638 and 44635.
Output
F Zero flag set if Magic Knight's (first) inventory (slot) is empty. Reset otherwise
45641 LD A,(24848) Load A with index of first object in Magic Knight's (carrying) inventory...
45644 OR A ...and if this is zero...
45645 RET NZ ...then return
45646 LD HL,51335 Point HL at "YOU ARE NOT CARRYING ANYTHING" text
This entry point is used by the routine at 45631.
45649 LD DE,49140 Adjust height of window 13 to accommodate text...
45652 CALL 45617 ...
45655 PUSH HL Store HL (pointer to text to print)
45656 LD A,13 Draw window 13...
45658 CALL 47193 ...
45661 POP HL Restore HL (pointer to text to print)
45662 CALL 46902 Print text to screen
45665 CALL 64230 Wait for interrupt then display "PRESS FIRE TO CONTINUE" window and wait for fire to be pressed
45668 XOR A Load A with zero
45669 RET Return
Prev: 45631 Up: Map Next: 45670