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
}
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.