Used by the routines at 23863, 23907, 30804, 62178 and 63586. Prints the safe key, Science Lab storeroom key, frog, water pistol and stinkbombs, depending on which of these items ERIC has in his possession. (The mouse inventory is handled separately at 31682.)
Input
Output
31746
LD HL,32746
L=234 (LSB of the display file address for the first slot in the inventory: 20714)
31749
LD C,6
Clear the six slots in the current on-screen inventory
31751
LD H,80
31753
LD B,8
31755
LD (HL),0
31757
INC H
31758
DJNZ 31755
31760
INC L
31761
DEC C
31762
JR NZ,31751
31764
LD DE,20714
DE=display file address for the first slot in the inventory