Cx51 用户手册----FIXXC800 伪指令

声明:

1、本翻译仅供个人学习使用,本人没有提供技术支持的义务,也不承担由此引发的任何后果。

2、请勿用于商业用途。

3、英文来自:http://www.keil.com/support/man/docs/c51/。

4、欢迎大家共同与我交流探讨(290207203@qq.com)。


FIXXC800 Compiler Directive

Abbreviation

FXC8

Arguments

None.

Default

Compiler generates code that may contain MOV dir,dir with two special function registers.

µVision

Options — C51 — Misc Controls.

Description

The FIXXC800 directive prevents from creating code that contains MOV dir,dir with two special function registers (i.e. MOV P1,B). This directive is implemented to bypass chip problems on some XC800 device variants. Refer to the errata sheet of your device for more information.

Example
sfr X1=0x91;
sfr X2=0xA2;
sfr16 Y1=0xFA;

unsigned int j;
char c;
void main (void) {
  X1 = X2;           // by default creates MOV X1,X2
  Y1 = X1 * 12;      // by default creates MOV Y1+1,B
}

FIXXC800 编译器伪指令

缩写

FXC8

参数

缺省

编译器生成的代码可能包含使用两个特殊功能寄存器的指令 MOV dir,dir 。

µVision

Options — C51 — Misc Controls.

描述

FIXXC800 伪指令防止生成的代码包含使用两个特殊功能寄存器的指令 MOV dir,dir (例如, MOV P1,B)。
这个伪指令的实现是为了旁路一些 XC800 器件变体的芯片问题。 用户器件的更多信息参考勘误表。

示例
sfr X1=0x91;
sfr X2=0xA2;
sfr16 Y1=0xFA;

unsigned int j;
char c;
void main (void) {
  X1 = X2;           // 缺省生成 MOV X1,X2
  Y1 = X1 * 12;      // 缺省生成 MOV Y1+1,B
}



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值