📄 prt.c
字号:
}
void print_cacul(uint x)
{
idata uchar page,dot,k,mm;
idata uchar code *hp;
uchar xdata *buf;
clk_asc();
txtdata(27);
txtdata(49);
txtdata(0);
txtdata(0x0d);
txtdata(0x0d);
buf=print_buff;
hp=H_10;
for (k=0;k<32;k++) *buf++=*hp++;
hp=H_65;
for (k=0;k<32;k++) *buf++=*hp++;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff('2',buf); buf=buf+16;
ascii_buff('0',buf); buf=buf+16;
ascii_buff(/*'0'*/clkasc[11],buf); buf=buf+16;
ascii_buff(/*'2'*/clkasc[10],buf); buf=buf+16;
hp=H_08;
for (k=0;k<32;k++) *buf++=*hp++;
ascii_buff(/*'0'*/clkasc[9],buf); buf=buf+16;
ascii_buff(/*'6'*/clkasc[8],buf); buf=buf+16;
hp=H_09;
for (k=0;k<32;k++) *buf++=*hp++;
ascii_buff(/*'1'*/clkasc[7],buf); buf=buf+16;
ascii_buff(/*'5'*/clkasc[6],buf); buf=buf+16;
hp=H_10;
for (k=0;k<32;k++) *buf++=*hp++;
for (dot=0;dot<2;dot++)
{
txtdata(27);
txtdata(75);
txtdata(160);
txtdata(0);
buf=print_buff;
buf=buf+dot;
for (k=0;k<160;k++)
{
txtdata(print_chang(*buf++));
buf++;
}
txtdata(0x0d);
}
buf=print_buff;
hp=H_21;//63;
for (k=0;k<64;k++) *buf++=*hp++;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
number_map(x+1,buf);
for (dot=0;dot<2;dot++)
{
txtdata(27);
txtdata(75);
txtdata(72);
txtdata(0);
buf=print_buff;
buf=buf+dot;
for (k=0;k<72;k++)
{
txtdata(print_chang(*buf++));
buf++;
}
txtdata(0x0d);
}
buf=print_buff;
hp=H_14;
for (k=0;k<64;k++) *buf++=*hp++;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
mm = file[x][FILE_ST];
if((mm & 0x03) == 0x02)
{
ascii_buff(' ',buf); buf=buf+16;
number_map(file[x][FILE_XC],buf); buf=buf+48;
}
else
{
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
/*
ascii_buff('N',buf); buf=buf+16;
ascii_buff('U',buf); buf=buf+16;
ascii_buff('L',buf); buf=buf+16;
ascii_buff('L',buf); buf=buf+16;
*/
}
ascii_buff(' ',buf); buf=buf+16;
ascii_buff('m',buf); buf=buf+16;
ascii_buff('m',buf); buf=buf+16;
ascii_buff('/',buf); buf=buf+16;
ascii_buff('h',buf);
for (dot=0;dot<2;dot++)
{
txtdata(27);
txtdata(75);
txtdata(120);
txtdata(0);
buf=print_buff;
buf=buf+dot;
for (k=0;k<120;k++)
{
txtdata(print_chang(*buf++));
buf++;
}
txtdata(0x0d);
}
buf=print_buff;
hp=H_16;
for (k=0;k<64;k++) *buf++=*hp++;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
if((mm & 0x0C) == 0x08)
{
if(file[x][FILE_YJ] >= 100)
{
ascii_buff('1',buf); buf=buf+16;
ascii_buff('.',buf); buf=buf+16;
ascii_buff('0',buf); buf=buf+16;
ascii_buff('0',buf); buf=buf+16;
}
else
{
ascii_buff('0',buf); buf=buf+16;
number_2p_map(file[x][FILE_YJ],buf); buf=buf+48;
}
}
else
{
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
/*
ascii_buff('N',buf); buf=buf+16;
ascii_buff('U',buf); buf=buf+16;
ascii_buff('L',buf); buf=buf+16;
ascii_buff('L',buf); buf=buf+16;
*/
}
ascii_buff(' ',buf); buf=buf+16;
ascii_buff('L',buf); buf=buf+16;
ascii_buff('/',buf); buf=buf+16;
ascii_buff('L',buf);
for (dot=0;dot<2;dot++)
{
txtdata(27);
txtdata(75);
txtdata(120);
txtdata(0);
buf=print_buff;
buf=buf+dot;
for (k=0;k<120;k++)
{
txtdata(print_chang(*buf++));
buf++;
}
txtdata(0x0d);
}
//******************************************************************//
buf=print_buff;
//******************************************************************//
if((mm & 0x03) == 0x02)
{
ascii_buff('H',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf);
print_16(24);
for (k=56;k!=0;k--)
{
page = 0;
for (dot=0;dot<MAX_TIME;dot++)
{
if ((file[x][0]-file[x][dot])/4 == k) //***********************************//
{
print_buff[page++] = dot*2+2;
print_buff[page++] = dot*2+3;
}
}
txtdata(27);
txtdata(39);
txtdata(page+1);
txtdata(1);
for (dot=0;dot<page;dot++) txtdata(print_buff[dot]);
txtdata(0x0d);
}
txtdata(27);
txtdata(39);
txtdata(120);
txtdata(1);
for(k=0;k<120;k++) txtdata(k);
txtdata(0x0d);
//******************************************************************//
buf=print_buff;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff('T',buf);
print_16(128);
//******************************************************************//
}
txtdata(27);
txtdata(49);
txtdata(3);
txtdata(0x0d);
txtdata(0x0d);
}
void print_tit1(bit xm)
{
idata uchar k;
idata uchar code *hp;
uchar xdata *buf;
txtdata(27);
txtdata(49);
txtdata(0);
txtdata(0x0d);
txtdata(0x0d);
buf=print_buff;
hp = H_21;
for (k=0;k<64;k++) *buf++=*hp++;
for (k=0;k<4;k++)
{
ascii_buff(' ',buf);
buf=buf+16;
}
hp = H_23;
for (k=0;k<64;k++) *buf++=*hp++;
hp = H_22;
for (k=0;k<32;k++) *buf++=*hp++;
for (k=0;k<4;k++)
{
ascii_buff(' ',buf);
buf=buf+16;
}
if (xm)
{
hp = H_14;
for (k=0;k<64;k++) *buf++=*hp++;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff('m',buf); buf=buf+16;
ascii_buff('m',buf); buf=buf+16;
ascii_buff('/',buf); buf=buf+16;
ascii_buff('h',buf);
k = 216;
}
else
{
hp = H_16;
for (k=0;k<64;k++) *buf++=*hp++;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff('L',buf); buf=buf+16;
ascii_buff('/',buf); buf=buf+16;
ascii_buff('L',buf);
k = 208;
}
print_16(k);
txtdata(27);
txtdata(49);
txtdata(3);
txtdata(0x0d);
}
void print_auto(uint x,uchar ch,bit xm)
{
// idata uchar i;
txtdata(27);txtdata(87);txtdata(2);
txtdata(27);txtdata(68);txtdata(1);txtdata(13);txtdata(25);txtdata(0);
txtdata(9); print_number(x+1);
txtdata(9); print_number(ch+1);
txtdata(9);
if (xm)
{
print_number(file[x][FILE_XC]);
if(DEBUG)
{
txtdata('/');
print_number(file[x][0]/4 + high/10);
}
// txtdata('/'); //***************test1
// i = file[x][0] - file[x][MAX_TIME-1];
// print_number(i);
}
else print_2p(file[x][FILE_YJ]);
txtdata(0x0d);
txtdata(27);txtdata(87);txtdata(1);
}
void print_tit2(bit xm)
{
idata uchar k;
idata uchar code *hp;
uchar xdata *buf;
txtdata(27);
txtdata(49);
txtdata(0);
txtdata(0x0d);
txtdata(0x0d);
buf=print_buff;
hp = H_21;
for (k=0;k<64;k++) *buf++=*hp++;
for (k=0;k<4;k++)
{
ascii_buff(' ',buf);
buf=buf+16;
}
if (xm)
{
hp = H_14;
for (k=0;k<64;k++) *buf++=*hp++;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff('m',buf); buf=buf+16;
ascii_buff('m',buf); buf=buf+16;
ascii_buff('/',buf); buf=buf+16;
ascii_buff('h',buf);
k = 136;
}
else
{
hp = H_16;
for (k=0;k<64;k++) *buf++=*hp++;
ascii_buff(' ',buf); buf=buf+16;
ascii_buff('L',buf); buf=buf+16;
ascii_buff('/',buf); buf=buf+16;
ascii_buff('L',buf);
k = 128;
}
print_16(k);
txtdata(27);
txtdata(49);
txtdata(3);
txtdata(0x0d);
}
void print_data(uint x,bit xm)
{
txtdata(27);txtdata(87);txtdata(2);
txtdata(27);txtdata(68);txtdata(1);txtdata(13);txtdata(0);
txtdata(9); print_number(x+1);
txtdata(9);
if (xm) print_number(file[x][FILE_XC]);
else print_2p(file[x][FILE_YJ]);
txtdata(0x0d);
txtdata(27);txtdata(87);txtdata(1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -