We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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 need to use #pragma SRC when you compile to generate a .SRC file. This file contains your inline assembly and can be assembled with the A51 assembler. Jon
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".