Skip to navigation

BBC Micro Elite

Text: CHAR (Disc version)

Name: CHAR [View in context] Type: Macro Category: Text Summary: Macro definition for characters in the recursive token table Deep dive: Printing text tokens
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 i.e. 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