Prev: 48656 Up: Map Next: 48707
48678: Select Next Column
Used by the routine at SelectNextTile.
Sets the tile to look at next to the one in the column to the right of the current one, at the left of it, for SelectNextTile. The column goes round to zero after 95.
SelectNextColumn 48678 LD A,(23594) The object reaches into the next column.
48681 LD (23596),A Update the segment screen column.
48684 LD HL,(23598) Fetch the word at PieceColumn into HL.
48687 INC H Advance H.
48688 LD A,H A=H.
48689 CP 96 Jump to SelectNextColumn_Store if A is not 96.
48691 JR NZ,SelectNextColumn_Store
48693 LD H,0 Clear H.
SelectNextColumn_Store 48695 LD L,8 L=8.
48697 LD (49023),HL Update the tile position.
48700 LD A,(52804) The segment row.
48703 LD (23597),A Update the segment screen row.
48706 RET Return.
Prev: 48656 Up: Map Next: 48707