This code appears in the following versions (click to see it in the source code):
Code variations between these versions are shown below.
Name: MT26 Type: Subroutine Category: Text Summary: Fetch a line of text from the keyboard Deep dive: Extended text tokens
If ESCAPE is pressed or a blank name is entered, then an empty string is returned.
Returns: Y The size of the entered text, or 0 if none was entered
or if ESCAPE was pressed
.MT26INWK+5 The entered text, terminated by a carriage return C flag Set if ESCAPE was pressed
When entering text in the Master version, the text that is typed is shown in magenta, while it is shown in white in the other versions.
This variation is blank in the Disc (docked) and 6502 Second Processor versions.
LDA COL \ Store the current colour on the stack PHA LDA #RED \ Switch to colour 2, which is magenta in the trade view STA COL
The Master version contains its own custom routine for the extended token that asks for a line of text, while the other enhanced versions use the standard OSWORD command. The Master Compact version of that custom routine supports more characters, as it supports ADFS rather than DFS.
See below for more variations related to this code.
Tap on a block to expand it, and tap it again to revert.
This variation is blank in the Master version.
Tap on a block to expand it, and tap it again to revert.
Code variation 7 of 7
See variation 5 above for details.
This variation is blank in the Master version.
JMP FEED \ Jump to FEED to print a newline, returning from the \ subroutine using a tail call