IAR 8051 7.60:
#define DATA_0AH (*(volatile unsigned char __data *)0x0A)
#define DATA_0BH (*(volatile unsigned char __data *)0x0B)
#define DATA_0CH (*(volatile unsigned char __data *)0x0C)
#define DATA_0DH (*(volatile unsigned char __data *)0x0D)
#define DATA_0EH (*(volatile unsigned char __data *)0x0E)
#define DATA_0FH (*(volatile unsigned char __data *)0x0F)
#define DATA_08H (*(volatile unsigned char __data *)0x08)
#define DATA_09H (*(volatile unsigned char __data *)0x09)
void SYS_Init(void)
{
//SYSCON=0;
DATA_0AH=0x00; //R1_2
DATA_0BH=0x00; //R1_3
DATA_0CH=0x00; //R1_4
DATA_0DH=0x00; //R1_5
DATA_0EH=0x00; //R1_6
DATA_0FH=0x00; //R1_7
DATA_08H=0x0B; //R1_0
}
RSEG NEAR_CODE:CODE:NOROOT(0)
// 15 void SYS_Init(void)
SYS_Init:
// 16 {
; Saved register size: 0
; Auto size: 0
// 17
// 18 //SYSCON=0;
// 19 DATA_0AH=0x00; //R1_2
MOV 0xa,#0x0
// 20 DATA_0BH=0x00; //R1_3
MOV 0xb,#0x0
// 21 DATA_0CH=0x00; //R1_4
MOV 0xc,#0x0
// 22 DATA_0DH=0x00; //R1_5
MOV 0xd,#0x0
// 23 DATA_0EH=0x00; //R1_6
MOV 0xe,#0x0
// 24 DATA_0FH=0x00; //R1_7
MOV 0xf,#0x0
// 25
// 26 DATA_08H=0x0B; //R1_0
MOV 0x8,#0xb
// 27 }
RET
|