Prev: A127 Up: Map Next: A185
A13B: Draw Inventory
Used by the routines at EnterRoom, HandlerCaveDoorLocked and HandlerBlank.
DrawInventory A13B LD DE,$2CC8
A13E LD HL,$5E30
A141 LD B,$03
DrawInventory_0 A143 CALL DrawInventoryItem
A146 LD A,E
A147 ADD A,$10
A149 LD E,A
A14A DJNZ DrawInventory_0
A14C RET
DrawInventoryItem A14D PUSH BC
A14E PUSH DE
A14F PUSH IX
A151 LD IX,$A17D
A155 LD A,(HL)
A156 INC HL
A157 OR (HL)
A158 INC HL
A159 LD A,(HL)
A15A JR NZ,DrawInventory_1
A15C LD A,$31
DrawInventory_1 A15E INC HL
A15F LD (IX+$00),A
A162 LD (IX+$03),E
A165 LD (IX+$04),D
A168 LD A,(HL)
A169 INC HL
A16A LD (IX+$05),A
A16D PUSH HL
A16E CALL ClearSprite
A171 CALL DrawEntity
A174 CALL SetEntityAttributes
A177 POP HL
A178 POP IX
A17A POP DE
A17B POP BC
A17C RET
EntityToDraw A17D DEFB $00,$00,$00,$00,$00,$00,$00,$00
Prev: A127 Up: Map Next: A185