Technical information

Operating Precautions for CPDW9X/NT-CDR-V85X, Y-GHS-MULTI-V800
TM
Customer Notification r20tu0003ed1812 45
No. a32
Syntax error on a rept inside a macro.
Version Information
V3.5.1
Details
The compiler gives a syntax error on the invocation of a macro, which invokes a repetition. The
syntax error appears if the end of the rept block and the end of the macro are not immediate.
Example:
In the following test file, blank lines are inserted between endr and endm to demonstrate the
problem, but it may be replaced with actual code or comments with the same effect.
test.s:
.macro INCREMENT
add 1,r6
.endm
.macro COUNT
.rept 2
INCREMENT
.endr
mov r6,r10
.endm
.text
.org 0x0
mov 0,r6
loop: COUNT
jr loop
Command Sequence
ccv850e c test.s
Error message:
test.s 20: INCREMENT
test.s 20: ^-
test.s 20: syntax error