A51: INCORRECT MOV INSTRUCTIONS GENERATED
Information in this article applies to:
I have written the following assembly code:
TEST1 EQU 80H TEST2 EQU 0xC0 mov a,#test2 mov a,#test1 mov a,#0x20 mov a,#040h mov a,test1 mov a,test2
But the assembled output is:
LOC OBJ LINE SOURCE 0080 1 TEST1 EQU 80H 0080 2 TEST2 EQU 0xC0 3 0000 7480 4 mov a,#test2 0002 7480 5 mov a,#test1 0004 7480 6 mov a,#0x20 0006 7440 7 mov a,#040h 0008 E580 8 mov a,test1 000A E580 9 mov a,test2
Test2 has been located at 80H rather than C0H. The MOV A,#test2 and MOV A,#0x20 instructions have turned into MOV A,#test1 instructions.
This is a confirmed bug that has been corrected in Version 5.54 of the A51 Assembler. See below to obtain the updated files.
Request the files attached to this knowledgebase article.
Last Reviewed: Friday, June 02, 2006