Prev: 7C63 Up: Map Next: 7C75
7C64: Print an inventory item
Used by the routine at 7C02. Prints the safe key, Science Lab storeroom key, frog, left or right half of the water pistol, or stinkbombs in one of the inventory slots.
Input
A Attribute byte
BC UDG address
DE Display file address
7C64 LD D,$5A Set the attribute byte
7C66 LD (DE),A
7C67 LD D,$50 Point DE back at the display file
7C69 LD A,(BC) Copy the UDG onto the screen
7C6A INC C
7C6B LD (DE),A
7C6C INC D
7C6D BIT 3,D
7C6F JR Z,$7C69
7C71 LD C,$E8 Reset C
7C73 INC E Move DE to the next slot in the on-screen inventory
7C74 RET
Prev: 7C63 Up: Map Next: 7C75