No. 651 article: How to embed the assembly directly in KEIL C51

Source: Internet
Author: User
2006-04-30 18:41:50
No. 651 article: How to embed the assembly directly in KEIL C51
Release date: December 20, 2004
Number of clicks: 2872
Details: How to embed the assembly directly in the KEIL C51

Methods for embedding the assembly code directly:
1, in the C file to embed the assembly code in the following way to join the assembly code:
#pragma ASM
; Assembler Code here
#pragma endasm
2. Right-click on the C file containing the assembly code in the Project window and select "Options for ..." and tap on the right "Generate assembler SRC file"
and "Assemble SRC File" To make the check box changed from gray to black (valid) state;
3, according to the selected compilation mode, the corresponding library files (such as Small mode, is keil/c51/lib/c51s. LIB) into the project, the document must be the most
Post-document;
4, compile, you can generate the target code.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.