Download V850 IAR Assembler Reference Guide

Transcript
Assembler directives
Use RADIX to set the default base for constants. The default base is 10.
Controlling case sensitivity
Use CASEON or CASEOFF to turn on or off case sensitivity for user-defined symbols. By
default, case sensitivity is off.
When CASEOFF is active all symbols are stored in upper case, and all symbols used by
XLINK should be written in upper case in the XLINK definition file.
EXAMPLES
Including a source file
This example uses $ to include a file defining macros into the source file. For example,
these macros could be defined in Macros.inc:
xch
macro
xor
xor
xor
endmac
a,b
a,b
b,a
a,b
The macro definitions can be included with a $ directive, as in:
NAME
include
; standard macro definitions
$macros.s85
; program
main
xch
END
R6,R7
main
Defining comments
This example shows how /*...*/ can be used for a multi-line comment:
/*
Program to read serial input.
Version 2: 19.9.2000
Author: mjp
*/
See also, Comments in C-style preprocessor directives, page 92.
97
AV850-4