Skip to navigation

Elite on the BBC Micro

Text: CHAR [Elite-A, Text tokens]

Name: CHAR [Show more] Type: Macro Category: Text Summary: Macro definition for characters in the recursive token table Deep dive: Printing 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 recursive token table: CHAR 'x' Insert ASCII character "x" To include an apostrophe, use a backtick character, as in CHAR '`'. See the deep dive on "Printing text tokens" for details on how characters are stored in the recursive token table. Arguments: 'x' The character to insert into the table
MACRO CHAR x IF x = '`' EQUB 39 EOR 35 ELSE EQUB x EOR 35 ENDIF ENDMACRO