User manual

ST assembler ST Assembler-Linker
24/89 Doc ID 11392 Rev 4
Table 6. Level 1 operators
Operation Result, level #1
-a negated a
a and b logical AND of A and B
a or b logical OR of A and B
a xor b logical XOR of A and B
a shr b a shifted right b times
a shl b a shifted left b times
a lt b 1 if a<b, else 0
a gt b 1 if a>b, else 0
a eq b 1 if a=b, else 0
a ge b 1 if a>=b, else 0
a ne b 1 if a unequal b, else 0
high a a/256, force arg to BYTE type
low a a MOD 256, force arg to BYTE type
offset a a MOD 65536, force arg to WORD*16 type
seg a a/65536, force arg to WORD*16 type
bnot a invert low 8 bits of a
wnot a invert low 16 bits of a
lnot a invert all 32 bits of a
sexbw a sign extend byte to 16 bits
sexbl a sign extend byte a to 32 bits
sexwl a sign extend word to 32 bits
Table 7. Level 2 operators
Operation Result, level #2
a/b a divided by b
a div b a divided by b
Table 8. Level 3 operators
Operation Result, level #3
a * b a multiplied by b
a mult b as above for motorola (character * is reserved)