Prev: AA7F Up: Map Next: AAA0
AA8C: Handler: Fetch Items In Current Room
Handler_ItemsCurrentRoom AA8C LD A,(IY+$0F) A=*IY+0F (current room).
AA8F LD HL,$BCE9 HL=Items_TownSquare.
AA92 CALL FindDataById Call FindDataById.
AA95 LD A,B If B is zero jump to Handler_ItemsCurrentRoom_Return.
AA96 OR A
AA97 JR Z,Handler_ItemsCurrentRoom_Return
Handler_ItemsCurrentRoom_Loop AA99 INC HL Increment HL by four.
AA9A INC HL
AA9B INC HL
AA9C INC HL
AA9D DJNZ Handler_ItemsCurrentRoom_Loop Decrease counter by one and loop back to Handler_ItemsCurrentRoom_Loop until counter is zero.
Handler_ItemsCurrentRoom_Return AA9F RET Return.
Prev: AA7F Up: Map Next: AAA0