We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello!
I would like to provide more information regarding Forum No. 8588.
The program that works properly was made to compare with the program that shows error. Looking at the assembly code which is associated with the function call, it is as below, very simple, and makes sense.
273: Assemble_CMDMessage(&CMD_Index, CMD_Argument, CMD_Message); 274: 0005009C E06A MOV R10,#0x06 0005009E 00A0 ADD R10,R0 000500A0 E029 MOV R9,#0x02 000500A2 0090 ADD R9,R0 000500A4 F080 MOV R8,R0 000500A6 CA004406 CALLA CC_UC,Assemble_CMDMessage(0x50644)
On the contrary, the program, which does not work properly and shows parameter value change, indicates assembly code as below. They are longer and more complicated than the properly-working code.
288: Assemble_CMDMessage(&CMD_Index, CMD_Argument, CMD_Message); 289: 000556D0 E064 MOV R4,#0x06 000556D2 0040 ADD R4,R0 000556D4 E005 MOV R5,#0x00 000556D6 06F40080 ADD R4,#0x8000 000556DA 16F50700 ADDC R5,#0x0007 000556DE 8850 MOV [-R0],R5 000556E0 F0C4 MOV R12,R4 000556E2 E04A MOV R10,#0x04 000556E4 00A0 ADD R10,R0 000556E6 E00B MOV R11,#0x00 000556E8 06FA0080 ADD R10,#0x8000 000556EC 16FB0700 ADDC R11,#0x0007 000556F0 E028 MOV R8,#0x02 000556F2 0080 ADD R8,R0 000556F4 E009 MOV R9,#0x00 000556F6 06F80080 ADD R8,#0x8000 000556FA 16F90700 ADDC R9,#0x0007 000556FE CA00385B CALLA CC_UC,Assemble_CMDMessage(0x55B38) 00055702 0802 ADD R0,#2 <\pre> I would be happy if anybody gives me a clue to resolve this issue. Thanks. Yoong-Goog Cho
"I would like to provide more information regarding Forum No. 8588."
then post it as a Reply in that Thread!
http://www.keil.com/forum/docs/thread8588.asp