Prev: C57A Up: Map Next: C591
C583: Look Up The Display Record For The Moved Marker
Used by the routine at ProcessDisplayAction.
Turns the moved marker into an index and reads the display record address from Table_DisplayRecordsByMovedMarker.
LookUpDisplayRecordForMovedMarker C583 AND $7F Keep bits 0-6 of the marker as the index and point HL at Table_DisplayRecordsByMovedMarker.
C585 LD E,A
C586 LD D,$00
C588 LD HL,$9FAB
C58B ADD HL,DE Add twice the index and read the display record address into HL.
C58C ADD HL,DE
C58D LD E,(HL)
C58E INC HL
C58F LD D,(HL)
C590 EX DE,HL
Prev: C57A Up: Map Next: C591