📄 9851.c
字号:
/*
unsigned int *DATA_PORT;
unsigned int FQ_UD;
unsigned int W_CLK;
unsigned int _9851_RESET;
void ini_9851(unsigned char port,unsigned int _9851_reset,unsigned int pq_ud_port,unsigned int w_clock_port)
{
if (port=='b'|port=='B')
DATA_PORT=0x7005;
else
DATA_PORT=0x7000;
W_CLK=w_clock_port;
FQ_UD=pq_ud_port;
_9851_RESET=_9851_reset;
*DATA_PORT|=_9851_RESET;
*DATA_PORT&=(_9851_RESET^0xffff);
}
void senddata(unsigned int *data_array)
{
unsigned int i,temp;
*DATA_PORT&=(FQ_UD^0xffff);
for (i=0;i<5;i++)
{
*DATA_PORT&=(W_CLK^0xffff);
temp=*DATA_PORT;
temp&=0xff00;
temp|=data_array[i];
*DATA_PORT=temp;
*DATA_PORT|=W_CLK;
}
*DATA_PORT|=FQ_UD;
}
void ini_IO()
{
unsigned int *data,*attrib,*dir;
data=0x7000;
attrib=0x7003;
dir=0x7002;
*dir=0xffff;
*attrib=0xffff;
*data=0;
}*/
/*
void add_array(unsigned int *array)
{
if (array[3]==255)
{
array[3]=0;
if (array[2]==255)
{
array[2]=0;
if (array[1]==255)
{
array[1]=0;
if (array[0]==255)
array[0]=0;
else array[0]++;
}
else array[1]++;
}
else array[2]++;
}
else array[3]++;
}
void add_array1(unsigned int *array,unsigned int number)
{
unsigned int H,L;
unsigned long int temp;
L=array[2];
L<<=8;
L+=array[3];
H=array[0];
H<<=8;
H+=array[1];
temp=(unsigned long int)number+(unsigned long int)L;
if (temp>65535)
H++;
L+=number;
array[3]=L&0x00ff;
array[2]=L>>8;
array[1]=H&0x00ff;
array[0]=H>>8;
}*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -