User manual

ST Assembler-Linker Assembler directives
Doc ID 11392 Rev 4 67/89
Example
INTEL
ld X,0FFFFh
See also MOTOROLA, TEXAS, ZILOG
Table 51. INTERRUPT
Purpose Specifies to the debugger that a routine is an interrupt rather than a function.
Format INTERRUPT <string>
Description
This directive is used with interrupt handlers and so aids the debugger in correctly
searching the stack for return address of the interrupted function.
Example
PUBLIC trap_handler
INTERRUPT trap_handler
trap_handler IRET
See also NEAR, FAR
Table 52. .LALL
Purpose List whole body of macro calls.
Format .LALL
Description
This directive forces the complete listing of a macro expansion each time a macro is
invoked. This is the default. This directive does not generate assembly code or data.
Example .LALL
See also .XALL, .SALL
Table 53. .LIST
Purpose Enable listing (default).
Format .LIST
Description
This directive switches on the listing if a previous .NOLIST has disabled it. The -'pa' or
-'li' options must also have been set from the command line to generate a listing. This
directive, in conjunction with the directive .NOLIST, can be used to control the listing of
macro definitions. This directive does not generate assembly code or data.
Example .LIST
See also .NOLIST
Table 54. #LOAD
Purpose Load named object file at link time.
Format #LOAD “pathname\filename[.ext]”
Description
This directive leaves a message for the linker to load the contents of the named file at
the current position in the current segment. The file should be in 'straight binary'
format, that is, a direct image of the bytes you want in the object code. It should not be
in Motorola (.s19) or Intel (.hex) format.
Table 50. INTEL