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!

0