Download as308ue. - Renesas Electronics
Transcript
AS308 V.1.00
Directive Commands
•
If you specify 1 for the search start position, it means the beginning of
the character string.
The 7-bit ASCII code characters including a space and tab can be used
to write a character string.
•
Kanji and other 8-bit code are not processed correctly. However, the as308 assembler does not output errors.
•
Always be sure to enclose the character string with quotations as you
write it.
If you want a macro argument to be expanded as a character string, enclose the parameter name with single quotations as you write it. Note that if you enclose a character
string with double quotations, the character string itself is
expanded.
•
This directive command can be written as a term of an expression.
Description example
top
.EQU
1
point_set .MACRO
source,dest,top
point
.EQU .INSTR{'source','dest',top}
.ENDM
:
point_set
japanese,se,1
:
point
.EQU 7
This example extracts the position (7) of the character string "se"
from the beginning (top) of the specified character string (japanese).
260