Skip to navigation

Elite on the BBC Micro

Text: ERND [6502SP version]

Name: ERND [Show more] Type: Macro Category: Text Summary: Macro definition for random tokens 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: ERND n Insert recursive token [n] * Tokens 0-123 get stored as n + 91 See the deep dive on "Printing extended text tokens" for details on how random tokens are stored in the extended token table. Arguments: n The number of the random token to insert into the table, in the range 0 to 37
MACRO ERND n EQUB (n + 91) EOR VE ENDMACRO