I am converting c code into assembly. I have used pragma ASM and ENDASM feature. Now inside pragma ASM i am using ADD A,#03h but this is not working, not only this all the operation related to accumulator like RRC A, CJNE A,#07h,label , SUBB A,#05h are not working..it gives this error- error A39-Register operand missing.
IMHO, the cause of troubles have to be somewhere else. Just for fun I have tried to place #pragmas ASM/ENDASM with "your code" inside some C code (also I let Keil to generate and assemble SRC) and see listing:
531 ; #pragma asm
532 ; ADD A,#03h
0014 2403 533 ADD A,#03h
534 ; RRC A
0016 13 535 RRC A
536 ; #pragma endasm
It is compiled as expected. Maybe, it could help to shorten your problematic module as much as possible and place it in the forum...