|
SymbolImporting
ASM Symbol Importing
ASM Symbol ImportingSome assemblers, like Pasmo, export a list of symbols into a .sym file. These take the form of one symbol per line, with the EQU asm keyword, and the value. Example: FILVRM EQU 00056H LDIRMV EQU 00059H LDIRVM EQU 0005CH The preprocessor can trivially import these symbols, either written directly into the file, or as a result of Includes. With this feature, you'll never need to hardcode any entry-point addresses in your BASIC code. Examples
$equ init {
$include { init.sym }
}
bload"init.bin"
defusr=$eval hex { $init.main }:i=usr(0)
rem "main" is a symbol in the init.sym file
|
Sign in to add a comment