Hi
I am copying the part of .lst file where in i just want the 16bits for computation, but the compiler is using the ACC and screwing up the operation. I hope the question is clear enough. If not please let me know.
426 ; 131 | *pObject_Data++ = ((unsigned int)(data[i+1] << (unsigned char)8) | data[i]);
427 ;
428 ; 132 | else
429 ;----------------------------------------------------------------------
430 00000082 9247 MOV AL,*-SP[7] ; |131|
431 00000083 9C01 ADDB AL,#1 ; |131|
432 00000084 8344 MOVL XAR5,*-SP[4] ; |131|
433 00000085 58A9 MOVZ AR0,AL ; |131|
434 00000086 5947 MOVZ AR1,*-SP[7] ; |131|
435 00000087 8A44 MOVL XAR4,*-SP[4] ; |131|
436 00000088 5603 MOV ACC,*+XAR5[AR0] << #8 ; |131|
00000089 0895
437 0000008a CA9C OR AL,*+XAR4[AR1] ; |131|
438 0000008b 8A46 MOVL XAR4,*-SP[6] ; |131|
439 0000008c 2BAA MOV PH,#0
440 0000008d 28AB MOV PL,#1
0000008e 0001
441 0000008f 5657 ADDUL P,XAR4
00000090 00A4
442 00000091 A946 MOVL *-SP[6],P ; |131|
443 00000092 96C4 MOV *+XAR4[0],AL ; |131|
444 00000093 6F07 B L10,UNC ; |131|
Thanks
Manju