Keil C51指令列表大全

单击文字可直接进入手册网址

下表是 Cx51 编译器中可用的控制指令的字母顺序列表。

DirectiveGroupDescription
AREGSObjectEnables absolute register (ARn) addressing.
ASMSourceMarks the beginning of an inline assembly block.
BROWSE1ObjectEnables source browser information.
CODE1ListingIncludes generated assembly in the listing file.
COMPACT1ObjectSelects the COMPACT memory model.
COND1ListingIncludes (in the listing file) conditional source lines skipped by the preprocessor.
DEBUG1ObjectIncludes debugging information in the object file.
DEFINE2SourceDefines preprocessor names on the command line.
DISABLEObjectDisables interrupts for the duration of a single function.
EJECTListingInserts a form feed character into the listing file.
ENDASMSourceMarks the end of an inline assembly block.
FARWARNINGObjectIssue a warning when only 16-bit offset calculations are performed for far addresses.
FIXXC800ObjectDisable generation of MOV dir,dir instruction with two SFR registers.
FLOATFUZZYObjectSets the number of bits rounded for floating-point comparisons.
INCDIR1SourceSets additional include file paths.
INTERVAL1ObjectSpecifies the interval to use for interrupt vectors.
INTPROMOTE1ObjectEnables ANSI integer promotion rules.
INTVECTOR1ObjectSpecifies the base address for interrupt vectors.
LARGE1ObjectSelects the LARGE memory model.
LISTINCLUDEListingAdds contents of include files into the listing file.
MAXARGS1ObjectSpecifies the maximum size of variable-length argument lists.
MOD517ObjectEnables support for additional hardware features of the Infineon 80C517 and compatible devices.
MODA2ObjectEnables dual data pointer support for the Atmel 82x8252 and compatible devices.
MODAB2ObjectEnables dual data pointer support for the Analog Devices Microconverters (ADuC B2 devices).
MODDAObjectEnables arithmetic accelerator support for the Dallas 80C390, 80C400, and 5240.
MODDP2ObjectEnables dual data pointer support for the Dallas 320, 520, 530, 550, and compatible devices.
MODP2ObjectDisables dual data pointer support for Philips and Atmel devices.
NOAMAKE1ObjectExcludes build information from the object file.
NOAREGSObjectDisables absolute register (ARn) addressing.
NOCOND1ListingExcludes (from the listing file) conditional source lines skipped by the preprocessor.
NOEXTEND1SourceDisables Cx51 extensions to ANSI C.
NOINTPROMOTE1ObjectDisables ANSI integer promotion rules.
NOINTVECTOR1ObjectDisables generation of interrupt vectors.
NOMOD517ObjectDisables support for additional hardware features of the Infineon 80C517 and compatible devices.
NOMODA2ObjectDisables dual data pointer support for the Atmel 82x8252 and compatible devices.
NOMODAB2ObjectDisables dual data pointer support for the Analog Devices Microconverters (ADuC B2 devices).
NOMODDAObjectDisables arithmetic accelerator support for the Dallas 80C390, 80C400, and 5240.
NOMODDP2ObjectDisables dual data pointer support for the Dallas 320, 520, 530, 550, and compatible devices.
MODP2ObjectEnables dual data pointer support for Philips and Atmel devices.
NOOBJECT1ObjectDisables object file generation.
NOPRINT1ListingDisables listing file generation.
NOREGPARMSObjectDisables passing parameter in registers.
OBJECT1ObjectSpecifies the name for the object file.
OBJECTADVANCED1ObjectAdds additional information to the object file for linker-level program optimizations.
OBJECTEXTEND1ObjectAdds additional debugging information to the object file.
OMF21ObjectGenerates an OMF2 object module.
ONEREGBANKObjectGenerates code for programs that use only one register bank.
OPTIMIZEObjectSpecifies the level of optimization performed by the compiler.
ORDER1ObjectAllocates storage for variables in the order in which they are declared.
PAGELENGTH1ListingSpecifies the number of lines on a page in the listing file.
PAGEWIDTH1ListingSpecifies the number of characters on a line in the listing file.
PREPRINT1ListingProduces a preprocessor listing file with expanded macros.
PRINT1ListingSpecifies the name for the listing file.
PSOC1ObjectGenerate interrupt vectors for Cypress PSoC devices.
REGPARMSObjectEnables passing parameter in registers.
RESTOREObjectRestores settings for AREGSREGPARMS, and OPTIMIZE directives.
RET_PSTK1ObjectUses the COMPACT model reentrant stack for return addresses.
RET_XSTK1ObjectUses the LARGE model reentrant stack for return addresses.
ROM1ObjectSpecifies the ROM model (SMALL, COMPACT or LARGE).
SAVEObjectSaves settings for AREGSREGPARMS, and OPTIMIZE directives.
SMALL1ObjectSelects the SMALL memory model.
SRC1ObjectCreates an assembler source file instead of an object file.
STRING1ObjectLocates implicit string constants to xdata or far memory.
SYMBOLS1ListingIncludes a symbol list in the listing file.
TABS1ListingSpecifies the tab character expansion width for the listing file.
USERCLASS1ObjectRenames memory classes which allows more flexible variable location.
VARBANKING1ObjectEnables far memory type variables.
WARNINGLEVEL1ListingSelects the level of warning detection.
XCROM1ObjectAssumes const xdata variables are stored in ROM.

Note:

  1. These directives apply to the entire source file and may be specified only once on the command line or at the beginning of the source file using the #pragma statement. They may not be used more than once in a source file.
  2. Directives and arguments, with the exception of arguments specified with the DEFINE directive, are not case sensitive.
  • 16
    点赞
  • 21
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

沉缘铭尘

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值