Prev: DF08 Up: Map Next: E062
E03D: Compare an item record with a special object slot
Used by the routine at load_map_window.
Input
IX Item record (map column, row, x, y)
IY Object slot
Output
F Z if the slot is in use and holds the same item; NZ if not, or if the slot is free ($FF)
same_item_in_slot E03D LD A,(IY+$00)
E040 INC A
E041 JR Z,same_item_in_slot_0
E043 LD A,(IX+$00)
E046 CP (IY+$01)
E049 RET NZ
E04A LD A,(IX+$01)
E04D CP (IY+$04)
E050 RET NZ
E051 LD A,(IX+$02)
E054 CP (IY+$02)
E057 RET NZ
E058 LD A,(IX+$03)
E05B CP (IY+$05)
E05E RET
same_item_in_slot_0 E05F OR $01
E061 RET
Prev: DF08 Up: Map Next: E062