Skip to navigation

Elite on the BBC Micro

Text: ECHR [6502SP version]

Name: ECHR [Show more] Type: Macro Category: Text Summary: Macro definition for characters in the extended token table Deep dive: Extended text tokens
Context: See this macro in context in the source code References: No direct references to this macro in this source file

The following macro is used when building the extended token table: ECHR 'x' Insert ASCII character "x" To include an apostrophe, use a backtick character, as in ECHR '`'. See the deep dive on "Printing extended text tokens" for details on how characters are stored in the extended token table. Arguments: 'x' The character to insert into the table
MACRO ECHR x IF x = '`' EQUB 39 EOR VE ELSE EQUB x EOR VE ENDIF ENDMACRO