This code appears in the following versions (click to see it in the source code):
Code variations between these versions are shown below.
.NLIN2 STA Y1 \ Set Y1 = AName: NLIN2 Type: Subroutine Category: Drawing lines Summary: Draw a screen-wide horizontal line at the pixel row in A
This draws a line from (2, A) to (254, A), which is almost screen-wide and fits in nicely between the border boxes without clashing with it.
Arguments: A The pixel row on which to draw the horizontal line
This variation is blank in the Cassette, Disc (flight), Disc (docked), Master and Electron versions.
STA Y2 \ Set Y2 = A
This variation is blank in the Cassette, Disc (flight), Disc (docked) and Electron versions.
Tap on a block to expand it, and tap it again to revert.
LDX #2 \ Set X1 = 2, so (X1, Y1) = (2, A) STX X1 LDX #254 \ Set X2 = 254, so (X2, Y2) = (254, A) STX X2