Skip to navigation

Elite on the BBC Micro and NES

Version analysis of SETYC / DOYC

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

Code variations between these versions are shown below.

Code variation 1 of 5A variation in the comments only

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

Name: DOYC
Name: SETYC
Type: Subroutine Category: Text

Code variation 2 of 5A variation in the comments only

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

Summary: Move the text cursor to a specific row
Summary: Implement the #SETYC <row> command (move the text cursor to a specific row)

Code variation 3 of 5A variation in the comments only

This variation is blank in the Master version.

This routine is run when the parasite sends a #SETYC <row> command. It updates the text cursor y-coordinate (i.e. the text row) in YC.
Arguments: A The text row

Code variation 4 of 5A variation in the labels only

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

.DOYC
.SETYC
 STA YC                 \ Store the new text row in YC

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

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

RTS \ Return from the subroutine
JMP PUTBACK \ Jump to PUTBACK to restore the USOSWRCH handler and \ return from the subroutine using a tail call