-/*--------------------------------------------------------------------------\r
-REG51.H\r
-\r
- Header file for generic 80C51 and 80C31 microcontroller.\r
-\r
---------------------------------------------------------------------------*/\r
-#ifndef REG51_H\r
-#define REG51_H\r
-\r
-/* BYTE Register */\r
-sfr P0 = 0x80;\r
-sfr P1 = 0x90;\r
-sfr P2 = 0xA0;\r
-sfr P3 = 0xB0;\r
-sfr PSW = 0xD0;\r
-sfr ACC = 0xE0;\r
-sfr B = 0xF0;\r
-sfr SP = 0x81;\r
-sfr DPL = 0x82;\r
-sfr DPH = 0x83;\r
-sfr PCON = 0x87;\r
-sfr TCON = 0x88;\r
-sfr TMOD = 0x89;\r
-sfr TL0 = 0x8A;\r
-sfr TL1 = 0x8B;\r
-sfr TH0 = 0x8C;\r
-sfr TH1 = 0x8D;\r
-sfr IE = 0xA8;\r
-sfr IP = 0xB8;\r
-sfr SCON = 0x98;\r
-sfr SBUF = 0x99;\r
-\r
-/* BIT Register */\r
-/* PSW */\r
-sbit CY = 0xD7;\r
-sbit AC = 0xD6;\r
-sbit F0 = 0xD5;\r
-sbit RS1 = 0xD4;\r
-sbit RS0 = 0xD3;\r
-sbit OV = 0xD2;\r
-sbit P = 0xD0;\r
-\r
-/* TCON */\r
-sbit TF1 = 0x8F;\r
-sbit TR1 = 0x8E;\r
-sbit TF0 = 0x8D;\r
-sbit TR0 = 0x8C;\r
-sbit IE1 = 0x8B;\r
-sbit IT1 = 0x8A;\r
-sbit IE0 = 0x89;\r
-sbit IT0 = 0x88;\r
-\r
-/* IE */\r
-sbit EA = 0xAF;\r
-sbit ES = 0xAC;\r
-sbit ET1 = 0xAB;\r
-sbit EX1 = 0xAA;\r
-sbit ET0 = 0xA9;\r
-sbit EX0 = 0xA8;\r
-\r
-/* IP */ \r
-sbit PS = 0xBC;\r
-sbit PT1 = 0xBB;\r
-sbit PX1 = 0xBA;\r
-sbit PT0 = 0xB9;\r
-sbit PX0 = 0xB8;\r
-\r
-/* P3 */\r
-sbit RD = 0xB7;\r
-sbit WR = 0xB6;\r
-sbit T1 = 0xB5;\r
-sbit T0 = 0xB4;\r
-sbit INT1 = 0xB3;\r
-sbit INT0 = 0xB2;\r
-sbit TXD = 0xB1;\r
-sbit RXD = 0xB0;\r
-\r
-/* SCON */\r
-sbit SM0 = 0x9F;\r
-sbit SM1 = 0x9E;\r
-sbit SM2 = 0x9D;\r
-sbit REN = 0x9C;\r
-sbit TB8 = 0x9B;\r
-sbit RB8 = 0x9A;\r
-sbit TI = 0x99;\r
-sbit RI = 0x98;\r
-\r
-#endif /* REG51_H */\r
+/*--------------------------------------------------------------------------
+REG51.H
+
+ Header file for generic 80C51 and 80C31 microcontroller.
+
+--------------------------------------------------------------------------*/
+#ifndef REG51_H
+#define REG51_H
+
+/* BYTE Register */
+sfr P0 = 0x80;
+sfr P1 = 0x90;
+sfr P2 = 0xA0;
+sfr P3 = 0xB0;
+sfr PSW = 0xD0;
+sfr ACC = 0xE0;
+sfr B = 0xF0;
+sfr SP = 0x81;
+sfr DPL = 0x82;
+sfr DPH = 0x83;
+sfr PCON = 0x87;
+sfr TCON = 0x88;
+sfr TMOD = 0x89;
+sfr TL0 = 0x8A;
+sfr TL1 = 0x8B;
+sfr TH0 = 0x8C;
+sfr TH1 = 0x8D;
+sfr IE = 0xA8;
+sfr IP = 0xB8;
+sfr SCON = 0x98;
+sfr SBUF = 0x99;
+
+/* BIT Register */
+/* PSW */
+sbit CY = 0xD7;
+sbit AC = 0xD6;
+sbit F0 = 0xD5;
+sbit RS1 = 0xD4;
+sbit RS0 = 0xD3;
+sbit OV = 0xD2;
+sbit P = 0xD0;
+
+/* TCON */
+sbit TF1 = 0x8F;
+sbit TR1 = 0x8E;
+sbit TF0 = 0x8D;
+sbit TR0 = 0x8C;
+sbit IE1 = 0x8B;
+sbit IT1 = 0x8A;
+sbit IE0 = 0x89;
+sbit IT0 = 0x88;
+
+/* IE */
+sbit EA = 0xAF;
+sbit ES = 0xAC;
+sbit ET1 = 0xAB;
+sbit EX1 = 0xAA;
+sbit ET0 = 0xA9;
+sbit EX0 = 0xA8;
+
+/* IP */
+sbit PS = 0xBC;
+sbit PT1 = 0xBB;
+sbit PX1 = 0xBA;
+sbit PT0 = 0xB9;
+sbit PX0 = 0xB8;
+
+/* P3 */
+sbit RD = 0xB7;
+sbit WR = 0xB6;
+sbit T1 = 0xB5;
+sbit T0 = 0xB4;
+sbit INT1 = 0xB3;
+sbit INT0 = 0xB2;
+sbit TXD = 0xB1;
+sbit RXD = 0xB0;
+
+/* SCON */
+sbit SM0 = 0x9F;
+sbit SM1 = 0x9E;
+sbit SM2 = 0x9D;
+sbit REN = 0x9C;
+sbit TB8 = 0x9B;
+sbit RB8 = 0x9A;
+sbit TI = 0x99;
+sbit RI = 0x98;
+
+#endif /* REG51_H */