Download TMS320C55x Assembly Language Tools User's Guide

Transcript
Assembler Error Messages
R5003
’C54x does not modify ARn, but ’C55x does
Description
This message occurs when both memory operands of an
ADD or SUB instruction use the same ARn register but only
the second operand modifies the register. For example:
SUB
Action
*AR3, *AR3+, A
On ’C54x, such an instruction will not modify AR3 by adding
one to it. On ’C55x, the same instruction will add one to
AR3.This difference in behavior may or may not affect your
code. To prevent this message from being issued, move the
ARn modification to the first operand:
SUB
*AR3+, *AR3, A
R5004
Port of RETF correct only for non-interrupt routine.
C-18
Description
This message occurs when the assembler encounters RETF
and RETFD, the ’C54x fast interrupt return instructions.
Because it is possible to correctly use these instructions in
non-interrupt routines, the RETF instruction is mapped to the
’C55x RET instruction.
Action
If this instance of RETF or RETFD is actually used to return
from an interrupt, you need to consider the issues described
in R5005, and then rewrite this instruction using the ’C55x
RETI instruction.