User manual
Assembler directives ST Assembler-Linker
70/89 Doc ID 11392 Rev 4
Example
cmp16 MACRO first,second,result
LOCAL trylow
ld A,first
add A,second
cp A,#0
jreq trylow
cpl A
trylow ld result,A
MEND
See also MACRO
Table 60. MOTOROLA
Purpose Force Motorola-style radix specifier.
Format MOTOROLA
Description
The Motorola style:
$AB Hexadecimal
~17 Octal
%100 Binary
17 Decimal (default)
* Current program counter
This directive forces the Motorola format to be required during the assembly. The
default format is MOTOROLA.
Example
MOTOROLA
ld X,$FFFF
See also INTEL, TEXAS, ZILOG
Table 61. NEAR
Purpose
Specifies to debuggers that the return address in the stack for functions using this
directive is written over two bytes.
Format NEAR <"string">
Description
This directive is used with functions called by CALL or CALLR, whose return stack
address spans two bytes. Every function called by CALL or CALLR must be classified
as NEAR.
Example
PUBLIC func
NEAR func
func ret
See also FAR, INTERRUPT
Table 62. .NOCHANGE
Purpose List original #define strings.
Format .NOCHANGE
Table 59. MEND