This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

inserting assembly codes in c source file

i'm using keil as development tool for msc 1210.
i want to generatehex file for this code(with assembly codes); what do i need to do,

" #include<REG1210.H>

void main(void)
{
while(1)
{
P2=0xfe;
#pragma asm
mov P0,#3fh
#pragma endasm
}
} "
i have included assemly code option from "LISTING" option from " OPTIONS FOR TARGET".But i get errors.
need a quick help!

Parents
  • You chose the wrong option. You have to turn on options "Generate Assembler SRC files" and "Assemble SRC file" in the per-source-file option dialog of uVision, instead. As the Manual would have explained, close to the end of chapter 4 of "Getting Started with uVision 2".

Reply
  • You chose the wrong option. You have to turn on options "Generate Assembler SRC files" and "Assemble SRC file" in the per-source-file option dialog of uVision, instead. As the Manual would have explained, close to the end of chapter 4 of "Getting Started with uVision 2".

Children
No data