Skip to navigation

Elite on the BBC Micro and NES

Version analysis of NLIN

This code appears in the following versions (click to see it in the source code):

Code variations between these versions are shown below.

Name: NLIN Type: Subroutine Category: Drawing lines Summary: Draw a horizontal line at pixel row 23 to box in a title
Draw a horizontal line at pixel row 23 and move the text cursor down one line.

Code variation 1 of 3A variation in the comments only

This variation is blank in the Cassette, Disc (flight), Disc (docked), 6502 Second Processor and Electron versions.

Other entry points: NLIN5 Move the text cursor down one line before drawing the line
.NLIN LDA #23 \ Set A = 23 so NLIN2 below draws a horizontal line at \ pixel row 23

Code variation 2 of 3A variation in the labels only

This variation is blank in the Cassette, Disc (flight), Disc (docked), 6502 Second Processor and Electron versions.

.NLIN5

Code variation 3 of 3Related to Elite's use of the Tube

Tap on a block to expand it, and tap it again to revert.

INC YC \ Move the text cursor down one line
JSR INCYC \ Move the text cursor down one line
                        \ Fall through into NLIN2 to draw the horizontal line
                        \ at row 23