Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

problem related to "#pragma ASM"

Status
Not open for further replies.

cool_harry

Newbie level 2
Joined
Aug 20, 2007
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,295
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.

plz help me.....
 

jan noha

Member level 1
Joined
Dec 10, 2002
Messages
32
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,288
Activity points
256
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...
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top