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!
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".