Skip to navigation

Screen buffer: screenRowAddrLo

Name: screenRowAddrLo [Show more] Type: Variable Category: Screen buffer Summary: Address lookup table for character rows in screen memory (low byte)
Context: See this variable in context in the source code References: This variable is used as follows: * DrawPolygonLines (Part 1 of 4) uses screenRowAddrLo * FillScreen uses screenRowAddrLo

This table contains addresses for each of the 24 character rows in the player's scrolling landscape view in screen memory. In its default, unscrolled state, screen memory starts at &7F80, so the address of the first row in the player's scrolling landscape view (i.e. the second row on-screen below the energy icon and scanner row) is &7F80 + 320, or &60C0 (as screen memory wraps around from &8000 back to &6000). See the ResetScreenAddress routine for more details.
.screenRowAddrLo FOR I%, 0, 24 EQUB LO(&60C0 + (I% * &140)) NEXT