Keil™, An ARM® Company

Technical Support

A166: WARNING A130 (AMBIGOUS INSTRUCTION)


Information in this article applies to:

  • C166 Version 4.10a

QUESTION

In my assembler program, I'm using the following C16x instruction:

MOV [R3+], [R2]

and I receive the following warning:

Warning A130: AMBIGOUS INSTRUCTION, TYPE 'WORD' ASSUMED

What can I do to stop getting this warning?

ANSWER

The assembler can't determine the size of the object to move. That causes this problem. The solution is to use either the MOVB or MOVW instructions. For example:

MOVW [R3+], [R2]

does what you want without generating the error.

Last Reviewed: Sunday, June 12, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure