Hi all can anyone tell me how to include assembly code in between your C coding. For the sake of simplicity consider the below code and mentioned procedure thereafter which I learn from the A51macro assembler and utility file.
void main() { #pragma asm JMP $ #pragma endasm while(1); }
After this step I am right clicking on my source file main.c and in the Option for... properties I am activating Generate Assembler SRC file and Assemble SRC file. After this step on final rebuilding the target files I am getting list of 2 warnings- 1) UNRESOLVED EXTERNAL SYMBOL symbol C_START 2) REFERENCE MADE TO UNRESOLVED EXTERNAL symbol C_START
Please tell how to eliminate this and get 0 error and 0 warning. Thanks
Andy it is 8051CPU P89V51RD2 the datasheet tells it support IAP. The procedure is mentioned but it is entirly in ASSEMBLY. Where a particular sector is accessed
.... to generate an assembler module called from C is to make a 'skeleton' module in C and use the generated assembler as a template for the assembler.
Erik
Illustated here: www.8052.com/.../149030