C51中嵌入汇编

来源:互联网 发布:淘宝直通车没钱了 编辑:程序博客网 时间:2024/06/05 08:32
#pragma ASM
    POP IE;

#pragma ENDASM


In µVision you may set a file specific option for C source files that contain ASM/ENDASM sections as follows:

  1. Right click on the file in the Project Window — Files tab
  2. Choose Options for... to open Options — Properties page
  3. Enable Generate Assembler SRC file
  4. Enable Assemble SRC file.

µVision generates an assembler source file (.SRC) and translates this file with the Assembler which generates an object file (.OBJ). The linker links this object file with other object files from the project and creates the target application program.


0 0
原创粉丝点击