(fh>=0&&(unsigned)fh <(unsigned)_nhandle)出错
int k =0;
        string testimgurlofat;//全局变量的初始化

void Find(LPCTSTR lpszFileName)
{
CString strWildcard = lpszFileName;
strWildcard += _T("\*.dat");

CFileFind finder;
BOOL bFind = FALSE;

//查找文件
bFind = finder.FindFile(strWildcard);
while (bFind)
{   k=k+1;

TCHAR *buff;

testimgurlofat = (TCHAR *) malloc( Buff_size * sizeof (TCHAR));

    bFind = finder.FindNextFile();

TCHAR argv[][13] = {"美","丽","赵","张","募","易"};
int m ;
for(m=0;m<6;m++){
TCHAR destinationkey[][10]= {"/l/","/s/","/q/","/z/","/m/","/y/"};

    int n;

for(n=0;n<6;n++) {
memset( &testimgurlofat, 0, Buff_size ); //使用strncat最容易忘记 清空数组。

    //获得找到文件的名称
    CString strFileName = finder.GetFileName();

if(strstr(strFileName,argv[m]))
{ //testurlifat = (char *)realloc(testurlifat, strlen(testurlifat) + strlen(destinationkey[0] )+1);

 testimgurlofat =  destinationkey[n];

}
}
}
}

cout << testimgurlofat << endl;

//判断找到文件的是否包含"."或".."
if (finder.IsDots())
{
continue;
}

    //获得找到文件的名称
    if (finder.IsDirectory())
    {
        //找到文件的路径
        CString strFilePath = finder.GetFilePath();
        //递归查找文件
        Find(strFilePath);
    }

cout << k<< endl;  
//  free(testimgurlofat);

}
//结束查找
finder.Close();
}
两个多线程函数同时引用Find(lpszFileName)函数,运用两个相同值的“全局变量”组成新的字符串!

提示close.c这里的 (fh>=0&&(unsigned)fh <(unsigned)_nhandle)出错,已定位到两个引用同个“全局变量”的函数出错,因为我去掉这两个函数,程序没报错!

按Alt+7键查看Call Stack里面从上到下列出的对应从里层到外层的函数调用历史,查到close.c的报错提示,
int __cdecl _close (
int fh
)
{
int r; /* return value */

    /* validate file handle */
    _CHECK_FH_CLEAR_OSSERR_RETURN( fh, EBADF, -1 );
    _VALIDATE_CLEAR_OSSERR_RETURN((fh >= 0 && (unsigned)fh < (unsigned)_nhandle), EBADF, -1);
    _VALIDATE_CLEAR_OSSERR_RETURN((_osfile(fh) & FOPEN), EBADF, -1);

    _lock_fh(fh);                   /* lock file */

    __try {
            if ( _osfile(fh) & FOPEN )
                    r = _close_nolock(fh);
            else {
                    errno = EBADF;
                    r = -1;
                    _ASSERTE(("Invalid file descriptor. File possibly closed by a different thread",0));//怀疑两个多线程函数同时引用Find(lpszFileName)函数,文件可能被不同的线程关闭!
            }
    }
    __finally {
            _unlock_fh(fh);         /* unlock the file */
    }

    return r;

}

程序中断在close.c的 _unlock_fh(fh); /* unlock the file */处。不知道怎么回事啊,调试了几天时间都没有解决,求各位大侠帮忙,江湖救急!在此谢过!

3个回答

是程序资源未回收,内存溢出

把close改成closesocket就可以了。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
(fh>=0&&(unsigned)fh <(unsigned)_nhandle)出错
int k =0; string testimgurlofat;//全局变量的初始化 void Find(LPCTSTR lpszFileName) { CString strWildcard = lpszFileName; strWildcard += _T("\\*.dat"); CFileFind finder; BOOL bFind = FALSE; //查找文件 bFind = finder.FindFile(strWildcard); while (bFind) { k=k+1; TCHAR *buff; testimgurlofat = (TCHAR *) malloc( Buff_size * sizeof (TCHAR)); bFind = finder.FindNextFile(); TCHAR argv[][13] = {"美","丽","赵","张","募","易"}; int m ; for(m=0;m<6;m++){ TCHAR destinationkey[][10]= {"/l/","/s/","/q/","/z/","/m/","/y/"}; int n; for(n=0;n<6;n++) { memset( &testimgurlofat, 0, Buff_size ); //使用strncat最容易忘记 清空数组。 //获得找到文件的名称 CString strFileName = finder.GetFileName(); if(strstr(strFileName,argv[m])) { //testurlifat = (char *)realloc(testurlifat, strlen(testurlifat) + strlen(destinationkey[0] )+1); testimgurlofat = destinationkey[n]; } } } } cout << testimgurlofat << endl; //判断找到文件的是否包含"."或".." if (finder.IsDots()) { continue; } //获得找到文件的名称 if (finder.IsDirectory()) { //找到文件的路径 CString strFilePath = finder.GetFilePath(); //递归查找文件 Find(strFilePath); } cout << k<< endl; // free(testimgurlofat); } //结束查找 finder.Close(); } 两个多线程函数同时引用Find(lpszFileName)函数,运用两个相同值的“全局变量”组成新的字符串! 提示close.c这里的 (fh>=0&&(unsigned)fh <(unsigned)_nhandle)出错,已定位到两个引用同个“全局变量”的函数出错,因为我去掉这两个函数,程序没报错! 按Alt+7键查看Call Stack里面从上到下列出的对应从里层到外层的函数调用历史,查到close.c的报错提示, int __cdecl _close ( int fh ) { int r; /* return value */ /* validate file handle */ _CHECK_FH_CLEAR_OSSERR_RETURN( fh, EBADF, -1 ); _VALIDATE_CLEAR_OSSERR_RETURN((fh >= 0 && (unsigned)fh < (unsigned)_nhandle), EBADF, -1); _VALIDATE_CLEAR_OSSERR_RETURN((_osfile(fh) & FOPEN), EBADF, -1); _lock_fh(fh); /* lock file */ __try { if ( _osfile(fh) & FOPEN ) r = _close_nolock(fh); else { errno = EBADF; r = -1; _ASSERTE(("Invalid file descriptor. File possibly closed by a different thread",0));//怀疑两个多线程函数同时引用Find(lpszFileName)函数,文件可能被不同的线程关闭! } } __finally { _unlock_fh(fh); /* unlock the file */ } return r; } 程序中断在close.c的 _unlock_fh(fh); /* unlock the file */处。不知道怎么回事啊,调试了几天时间都没有解决,求各位大侠帮忙,江湖救急!在此谢过!
FH: scanf("%f",&mn);中的FH代表的什么意思,只是取款程序的一部分,
else { printf("请输入你的取款金额:"); FH: scanf("%f",&mn); if((p->data.money-mn)>=0) { p->data.money=p->data.money-mn; printf("取款成功!\n"); } else { printf("取款失败!\n"); printf("你账户上的金额不足!你的账户余额为:%.2fRMB\n",p->data.money); printf("请输入合适的取款金额:"); goto FH;
fh admin 如何实现发送短信
我在使用fh admin 看介绍技术点中有短信发送功能, 我想做一个发送短信接收验证码的功能 请大神请教
高通的工具fh_loader.exe下载出现失败的原因主要有什么?
调用fh_loader.exe来下载,前面都正常,到最后烧写失败,同样的模块用QMSCT这个软件下载就能正常下载,下面是报错的日志 ![图片说明](https://img-ask.csdn.net/upload/201910/11/1570783848_140406.jpg) 正常日志到这里是这样的 ![图片说明](https://img-ask.csdn.net/upload/201910/11/1570783956_764497.jpg) 我是这样想的,QMSCT能正常下载说明模块没问题,但为什么我调用fh_loader.exe这个就会出错呢,百度上找不到同样的错误,有了解的大神知道是什么原因吗,或者有可能性猜测的也可以说一下,
汇编语言,修改下总密码。感谢大家
文件内容如下所示:大侠们帮忙,是看一下怎么修改总密码,关机密码,加减密码。感谢大家了。急!!! P4 EQU 0D8H BEEP BIT P1.6 S1_CD4052_9 BIT P1.7 S0_CD4052_10 BIT P4.3 D573_11 BIT P4.2 ;段 W573_11 BIT P1.0 ;位 JMPER BIT P3.4 SDA_24CXX_5 BIT P3.5 SCL_24CXX_6 BIT P3.6 RST_DS1302_5 BIT P4.0 DIO_DS1302_6 BIT P2.0 CLK_DS1302_7 BIT P3.7 ORG 0000H SJMP MAIN ORG 0003H AJMP WI0 ORG 000BH AJMP WT0 ORG 0013H AJMP WI1 ORG 001BH AJMP WT1 ORG 0023H AJMP WTR ORG 0030H MAIN:NOP setb S1_CD4052_9 setb S0_CD4052_10 CLR BEEP MOV 0BFH,#02H SETB P1.1;键盘输入线 SETB P1.2 SETB P1.3 SETB P1.4 CLR A MOV P0,A CLR D573_11 CLR W573_11 MOV SP,#0D0H MOV R0,#08H MOV R7,#248 CLR A M1:MOV @R0,A INC R0 DJNZ R7,M1 LCALL U MOV IE,#9FH MOV IP,#07H MOV TMOD,#11H MOV 0C8H,#34H SETB IT0 SETB IT1 MOV TL0,#0B0H MOV TH0,#0B9H SETB TR0 SETB 05H SETB 06H MOV 08H,#8 MOV TL1,#80H MOV TH1,#0FCH SETB TR1 MOV 14H,#1 LCALL V LCALL ZJ LCALL GJPD LCALL U LCALL KZ M2:NOP JB 10H,M3 JB 11H,M3 LCALL TTR M3:LCALL SC LCALL KY JZ M2 LCALL KJ SJMP M2 ORG 0100H ZJ:NOP PUSH 27H PUSH 2EH MOV R2,#8EH MOV R3,#00H LCALL DTW MOV R2,#90H MOV R3,#0AAH LCALL DTW MOV R2,#8EH MOV R3,#80H LCALL DTW ZJ0:MOV R7,#10 CLR A MOV R3,A MOV R4,A ZJ1:MOV R6,#50 MOV A,R3 MOV 27H,A MOV 2EH,A MOV R0,#28H MOV R5,#6 MOV A,R4 ZJ2:MOV @R0,A INC R0 DJNZ R5,ZJ2 ZJ3:LCALL KY CJNE A,#15,ZJ4 SJMP ZJ10 ZJ4:CJNE A,#12,ZJ5 LCALL CLGJ SJMP ZJ0 ZJ5:CJNE A,#8,ZJ6 LCALL BT2 SJMP ZJ0 ZJ6:CJNE A,#6,ZJ7 LCALL BT3 SJMP ZJ0 ZJ7:CJNE A,#1,ZJ8 LCALL BT4 SJMP ZJ0 ZJ8:CJNE A,#14,ZJ9 LCALL BH SJMP ZJ0 ZJ9:LCALL DL2 DJNZ R6,ZJ3 MOV A,R3 CPL A MOV R3,A INC R4 DJNZ R7,ZJ1 ZJ10:POP 2EH POP 27H RET BH:PUSH 27H PUSH 2EH CLR A MOV 27H,A MOV 2EH,A MOV DPTR,#7F2AH LCALL MMRX BH0:LCALL KY CJNE A,#14,BH0 MOV DPTR,#7F2DH LCALL MMRX MOV 2EH,#15H BH1:LCALL KY CJNE A,#14,BH1 POP 2EH POP 27H RET WT1:CLR 01H CLR TR1 PUSH ACC PUSH PSW CLR RS0 SETB RS1 DJNZ R4,WT11 MOV R0,#26H MOV R1,#20H MOV R2,2EH MOV R3,#2 MOV R4,#8 CLR A MOV P0,A SETB D573_11 CLR D573_11 SETB W573_11 CLR W573_11 MOV TL1,#00H MOV TH1,#0FEH SETB 01H SETB 02H SJMP WT14 WT11:CLR A MOV P0,A SETB D573_11 CLR D573_11 SETB W573_11 CLR W573_11 MOV A,@R0 JNB 02H,WT12 DJNZ R3,WT13 CLR 02H WT12:ADD A,#38H MOVC A,@A+PC XCH A,R2 RRC A XCH A,R2 MOV ACC.7,C SJMP WT15 WT13:MOV P0,A NOP SETB D573_11 CLR D573_11 MOV A,#40H ;顺序变了 MOV P0,A NOP SETB W573_11 CLR W573_11 SJMP WT14 WT15:MOV P0,A SETB D573_11 CLR D573_11 MOV A,R1 MOV P0,A NOP SETB W573_11 CLR W573_11 MOV A,R1 RR A MOV R1,A WT14:MOV TL1,#80H MOV TH1,#0FCH INC R0 SETB TR1 POP PSW POP ACC RETI TAB:DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH;0,1,2,3,4,5,6,7,8,9 DB 77H,7CH,39H,5EH,79H,71H,00H,40H,48H,76H;A,B,C,D,E,F, ,-, DB 0EH,38H,54H,5CH,73H,50H,78H,1CH,6EH DL:PUSH 07H MOV 07H,#250 DL0:NOP NOP NOP DJNZ 07H,DL0 POP 07H RET DL1:NOP ACALL DL ACALL DL RET DL2:NOP ACALL DL1 ACALL DL1 RET DL3:PUSH 07H MOV 07H,#20 DL30:NOP NOP NOP DJNZ 07H,DL30 POP 07H RET KY:ACALL DL2 PUSH PSW SETB RS0 SETB RS1 ACALL KYB JNZ KY2 ;如果A=0,说明没有按键按下 KY1:POP PSW RET KY2:MOV R2,A ACALL KYB4 JNZ KY1 ACALL DL2 ACALL KYB;第二次判断 CJNE A,1AH,KY1;1AH就是R2 SETB BEEP KY3:ACALL DL2 ACALL KYB;判断有没有松开 JNZ KY3 MOV A,R2 CLR BEEP POP PSW RET KYB:NOP CLR A MOV R3,A MOV R4,A MOV R5,A MOV R6,#0FEH;置最低位为0,开始扫描 MOV R7,#4 ;4跟行线 KYB1:JNB 01H,KYB1 CLR TR1 KYB2:MOV A,R6 MOV P0,A SETB W573_11 CLR W573_11 NOP NOP MOV C,P1.4 ACALL KYC MOV C,P1.3 ACALL KYC MOV C,P1.2 ACALL KYC MOV C,P1.1 ACALL KYC MOV A,R6 RL A MOV R6,A DJNZ R7,KYB2 CLR A MOV P0,A SETB W573_11 CLR W573_11 SETB TR1 MOV R7,#16 KYB3:CLR C MOV A,R5 RRC A MOV R5,A MOV A,R4 RRC A MOV R4,A MOV A,R3 RRC A MOV R3,A JNC KYB5 KYB4:DJNZ R7,KYB3 CLR A RET KYB5:MOV A,R7 RET KYC:MOV A,R3 RLC A MOV R3,A MOV A,R4 RLC A MOV R4,A MOV A,R5 RLC A MOV R5,A RET WT0:CLR TR0 JNB 06H,WT01 MOV TL0,#00H MOV TH0,#00H clr S1_CD4052_9 setb S0_CD4052_10 SETB TR0 CLR 06H RETI WT01:MOV TL0,#00H MOV TH0,#00H setb S1_CD4052_9 clr S0_CD4052_10 SETB TR0 SETB 06H RETI WI0:PUSH ACC PUSH PSW CLR RS1 SETB RS0 CLR TR0 clr S1_CD4052_9 clr S0_CD4052_10 MOV R1,TL0 MOV R2,TH0 CLR A MOV TL0,A MOV TH0,A SETB TR0 CLR A MOV R3,A MOV R7,#4 WI01:CLR C MOV A,R1 RLC A MOV R1,A MOV A,R2 RLC A MOV R2,A MOV A,R3 RLC A MOV R3,A DJNZ R7,WI01 MOV A,R4 ADD A,R1 MOV R4,A MOV A,R5 ADDC A,R2 MOV R5,A MOV A,R6 ADDC A,R3 MOV R6,A POP PSW POP ACC RETI WI1:PUSH ACC PUSH PSW CLR RS1 SETB RS0 CLR TR0 MOV R1,TL0 MOV R2,TH0 MOV TL0,#0B0H MOV TH0,#0B9H SJMP WIAD WIEND:CLR A MOV R4,A MOV R5,A MOV R6,A WIENE:SETB 06H POP PSW POP ACC RETI WIAD:DJNZ R0,WIX setb S1_CD4052_9 setb S0_CD4052_10 SETB TR0 JB 1BH,W4 ACALL WII MOV R1,#0A0H MOV R0,#24 MOV A,R6 W1:XCH A,@R1 INC R1 DJNZ R0,W1 MOV R1,#0A0H MOV R0,#24 MOV A,R5 W2:XCH A,@R1 INC R1 DJNZ R0,W2 MOV R1,#0A0H MOV R0,#24 MOV A,R4 W3:XCH A,@R1 INC R1 DJNZ R0,W3 W4:CLR A MOV R4,A MOV R5,A MOV R6,A MOV R0,#8 SETB 04H SJMP WIEND WIX:setb S1_CD4052_9 setb S0_CD4052_10 SETB TR0 ACALL WII SJMP WIENE WII:CLR C MOV A,R4 SUBB A,R1 MOV R4,A MOV A,R5 SUBB A,R2 MOV R5,A MOV A,R6 SUBB A,#0 MOV R6,A RET WTR:JNB 0AH,TRA SJMP TRB TRA:CLR TI JB 10H,TRA1 RETI TRA1:PUSH ACC PUSH PSW SETB RS0 SETB RS1 MOV A,@R0 MOV SBUF,A INC R0 DJNZ R1,TRA2 CLR 10H TRA2:POP PSW POP ACC RETI TRB:CLR TI JB 10H,TRB1 RETI TRB1:PUSH ACC PUSH PSW SETB RS1 SETB RS0 SETB TB8 MOV A,@R0 MOV SBUF,A INC R0 DJNZ R1,TRB2 CLR 10H TRB2:POP PSW POP ACC RETI TTC:MOV R0,#0C0H MOV R1,46H MOV R2,47H MOV R3,#0 MOV R4,30H LCALL MU1 LCALL BCD24 MOV R0,#0C5H MOV R1,#72H MOV R7,#3 TTC1:MOV A,@R1 SWAP A ANL A,#0FH ADD A,#30H MOV @R0,A DEC R0 MOV A,@R1 ANL A,#0FH ADD A,#30H MOV @R0,A DEC R0 DEC R1 DJNZ R7,TTC1 MOV A,31H JZ TTC3 MOV R0,#0C0H MOV A,R0 ADD A,31H MOV R0,A MOV A,#2EH ; '.' TTC2:XCH A,@R0 INC R0 CJNE R0,#0C7H,TTC2 SJMP TTC4 TTC3:MOV R0,#0C6H MOV @R0,#30H INC R0 TTC4:JNB 0CH,TTC5 MOV @R0,#2DH ;'-' SJMP TTC6 TTC5:MOV @R0,#30H TTC6:MOV 18H,#0C0H MOV 19H,#8 MOV A,#03DH;=打头 MOV SBUF,A SETB 10H SETB 11H RET TTR:MOV A,37H JB ACC.3,TTC JNB 0AH,TTA;0ah=0 为托利多格式 SJMP TTB TTA:MOV R0,#0C0H MOV @R0,#20H MOV A,31H CJNE A,#1,TTA1 MOV @R0,#23H SJMP TTA4 TTA1:CJNE A,#2,TTA2 MOV @R0,#24H SJMP TTA4 TTA2:CJNE A,#3,TTA3 MOV @R0,#25H SJMP TTA4 TTA3:CJNE A,#4,TTA4 MOV @R0,#26H TTA4:INC R0 MOV A,#30H JNB 0FH,TTA5 SETB ACC.2 TTA5:JNB 0CH,TTA6 SETB ACC.1 TTA6:JNB 0DH,TTA7 SETB ACC.3 TTA7:MOV @R0,A INC R0 MOV @R0,#20H MOV R1,46H MOV R2,47H MOV R3,#0 MOV R4,30H LCALL MU1 LCALL BCD24 MOV R0,#0C3H MOV R1,#72H MOV R7,#3 TTA9:MOV A,@R1 SWAP A ANL A,#0FH ADD A,#30H MOV @R0,A INC R0 MOV A,@R1 ANL A,#0FH ADD A,#30H MOV @R0,A INC R0 DEC R1 DJNZ R7,TTA9 MOV @R0,#0DH INC R0 MOV @R0,#0AH MOV 18H,#0C0H MOV 19H,#11 MOV A,#02H MOV SBUF,A SETB 10H SETB 11H RET TTB:MOV R0,#0C0H CLR A JNB 0FH,TTB1 SETB ACC.7 TTB1:JNB 0CH,TTB2 SETB ACC.5 TTB2:JB 0DH,TTB3 SETB ACC.4 TTB3:MOV @R0,A MOV A,31H INC A ORL A,@R0 MOV @R0,A MOV R1,46H MOV R2,47H MOV R3,#0 MOV R4,30H LCALL MU1 LCALL BCD24 MOV R0,#0C1H MOV R1,#70H MOV R7,#3 TTB4:MOV A,@R1 MOV @R0,A INC R0 INC R1 DJNZ R7,TTB4 MOV 18H,#0C0H MOV 19H,#4 SETB TB8 MOV A,#0FFH MOV SBUF,A SETB 10H SETB 11H RET ADS:NOP CLR A MOV R1,A MOV R2,A MOV R3,A MOV R0,#0A0H MOV R7,#8 ADS0:MOV A,@R0 ADD A,R1 MOV R1,A INC R0 MOV A,@R0 ADDC A,R2 MOV R2,A INC R0 MOV A,@R0 ADDC A,R3 MOV R3,A INC R0 DJNZ R7,ADS0 MOV R7,#5 ADS1:CLR C MOV A,R3 RRC A MOV R3,A MOV A,R2 RRC A MOV R2,A MOV A,R1 RRC A MOV R1,A DJNZ R7,ADS1 ;LCALL ADY RET ADX:NOP CLR A MOV R1,A MOV R2,A MOV R3,A MOV R0,#0A0H MOV R7,#8 ADX0:MOV A,@R0 ADD A,R1 MOV R1,A INC R0 MOV A,@R0 ADDC A,R2 MOV R2,A INC R0 MOV A,@R0 ADDC A,R3 MOV R3,A INC R0 DJNZ R7,ADX0 MOV R7,#6 ADX1:CLR C MOV A,R3 RRC A MOV R3,A MOV A,R2 RRC A MOV R2,A MOV A,R1 RRC A MOV R1,A DJNZ R7,ADX1 RET SU:NOP ACALL ADS CLR 0CH CLR C MOV A,R1 SUBB A,43H MOV R1,A MOV A,R2 SUBB A,44H MOV R2,A MOV A,R3 SUBB A,45H MOV R3,A JNC SU0 LCALL CPA SETB 0CH CLR 19H CLR 1AH SU0:PUSH 00H PUSH 07H MOV R4,3DH MOV R5,3EH MOV R6,3FH LCALL MU3 MOV R0,#70H MOV R7,#5 CLR C SU1:MOV A,@R0 RLC A MOV @R0,A INC R0 DJNZ R7,SU1 MOV 79H,3AH MOV 7AH,3BH MOV 7BH,3CH LCALL DV3 POP 07H POP 00H RET KJ:CJNE A,#8,KJ1 LCALL BT1 RET KJ1:CJNE A,#14,KJ2 LCALL DATE LCALL TIME RET KJ2:CJNE A,#13,KJ3 JNB 13H,KJ21 CLR P2.3 KJ20:LCALL KY CJNE A,#13,KJ20 SETB P2.3 KJ21:RET KJ3:CJNE A,#4,KJ4 LCALL ZZ RET KJ4:CJNE A,#11,KJ5 LCALL RPT RET KJ5:CJNE A,#10,KJ6 LCALL DYSZ RET KJ6:CJNE A,#5,KJ7 JB 0FH,KJ60 JB 15H,KJ60 LCALL ZP KJ60:RET KJ7:CJNE A,#1,KJ8 JB 0FH,KJ14 LCALL YCCC RET KJ8:CJNE A,#2,KJ9 JB 0FH,KJ80 JB 15H,KJ80 LCALL ECCC KJ80:RET KJ9:CJNE A,#12,KJ10 LCALL CLEAR RET KJ10:CJNE A,#9,KJ11 LCALL QP RET KJ11:CJNE A,#6,KJ12 LCALL ZX RET KJ12:CJNE A,#3,KJ13 LCALL BTKLAA RET KJ13:CJNE A,#7,KJ14 JNB 13H,KJ14 LCALL BB RET KJ14:CJNE A,#15,KJ15 CLR A MOV 38H,A;取消扣率 MOV 39H,A MOV DPTR,#7F18H CALL WRIT INC DPTR CALL WRIT RET KJ15:RET SK:NOP SETB P1.5 JB P1.5,SK0 ORL 27H,#20H ANL 27H,#0EFH RET SK0:NOP ANL 27H,#0DFH SETB P4.1 JB P4.1,SK1 ORL 27H,#10H RET SK1:ANL 27H,#0EFH RET WE:PUSH 07H MOV R7,#8 WE1:RLC A MOV SDA_24CXX_5,C NOP SETB SCL_24CXX_6 NOP CLR SCL_24CXX_6 DJNZ R7,WE1 POP 07H SETB SCL_24CXX_6 NOP CLR SCL_24CXX_6 RET WRIT:NOP PUSH ACC CLR SDA_24CXX_5 NOP CLR SCL_24CXX_6 MOV A,#0A0H ACALL WE MOV A,DPH ACALL WE MOV A,DPL ACALL WE POP ACC PUSH ACC ACALL WE CLR SDA_24CXX_5 NOP SETB SCL_24CXX_6 NOP SETB SDA_24CXX_5 LCALL DL2 POP ACC RET RE:PUSH 07H MOV R7,#8 CLR A RE1:SETB SCL_24CXX_6 NOP MOV C,SDA_24CXX_5 RLC A CLR SCL_24CXX_6 DJNZ R7,RE1 POP 07H SETB SDA_24CXX_5 NOP SETB SCL_24CXX_6 NOP CLR SCL_24CXX_6 RET WF:CLR SDA_24CXX_5 NOP CLR SCL_24CXX_6 MOV A,#0A0H ACALL WE MOV A,DPH ACALL WE MOV A,DPL ACALL WE RET READ:ACALL WF SETB SDA_24CXX_5 NOP SETB SCL_24CXX_6 NOP CLR SDA_24CXX_5 NOP CLR SCL_24CXX_6 MOV A,#0A1H ACALL WE ACALL RE CLR SDA_24CXX_5 NOP SETB SCL_24CXX_6 NOP SETB SDA_24CXX_5 RET WP:CLR SDA_24CXX_5 NOP CLR SCL_24CXX_6 MOV A,#0A0H LCALL WE MOV A,DPH LCALL WE MOV A,DPL LCALL WE PUSH 07H MOV R7,#32 WP1:CLR A LCALL WE DJNZ R7,WP1 POP 07H CLR SDA_24CXX_5 NOP SETB SCL_24CXX_6 NOP SETB SDA_24CXX_5 LCALL DL2 RET DTW:SETB RST_DS1302_5 MOV A,R2 MOV R4,#8 DTW1:RRC A MOV DIO_DS1302_6,C NOP NOP SETB CLK_DS1302_7 NOP NOP CLR CLK_DS1302_7 DJNZ R4,DTW1 MOV A,R3 MOV R4,#8 DTW2:RRC A MOV DIO_DS1302_6,C NOP NOP SETB CLK_DS1302_7 NOP NOP CLR CLK_DS1302_7 DJNZ R4,DTW2 NOP NOP CLR RST_DS1302_5 RET DTR:SETB RST_DS1302_5 MOV A,R2 MOV R4,#8 DTR1:RRC A MOV DIO_DS1302_6,C NOP NOP SETB CLK_DS1302_7 NOP NOP CLR CLK_DS1302_7 DJNZ R4,DTR1 NOP NOP SETB DIO_DS1302_6 CLR A CLR C MOV R4,#8 DTR2:MOV C,DIO_DS1302_6 RRC A NOP NOP SETB CLK_DS1302_7 NOP NOP CLR CLK_DS1302_7 NOP NOP DJNZ R4,DTR2 MOV R3,A CLR RST_DS1302_5 RET TMW:MOV R2,#8EH MOV R3,#00H CALL DTW MOV R2,#80H MOV R3,#00H CALL DTW MOV R0,#54H MOV R2,#8CH MOV A,@R0 MOV R3,A CALL DTW INC R0 MOV R5,#88H MOV R7,#4 TMW1:MOV A,R5 MOV R2,A MOV A,@R0 MOV R3,A LCALL DTW INC R0 MOV A,R5 DEC A DEC A MOV R5,A DJNZ R7,TMW1 MOV R2,#8EH MOV R3,#80H LCALL DTW RET TMR:MOV R0,#54H MOV R2,#8DH LCALL DTR MOV A,R3 MOV @R0,A INC R0 MOV R5,#89H MOV R7,#4 TMR1:MOV A,R5 MOV R2,A LCALL DTR MOV A,R3 MOV @R0,A INC R0 MOV A,R5 DEC A DEC A MOV R5,A DJNZ R7,TMR1 RET BCD8:CLR A MOV R2,A MOV R3,A MOV R7,#8 BCD81:CLR C MOV A,R1 RLC A MOV R1,A MOV A,R2 ADDC A,R2 DA A MOV R2,A MOV A,R3 ADDC A,R3 DA A MOV R3,A DJNZ R7,BCD81 RET BCD24:PUSH 00H PUSH 06H PUSH 07H MOV R0,#70H MOV R7,#3 CLR A B1:MOV @R0,A INC R0 DJNZ R7,B1 MOV R7,#24 B2:MOV R0,#01H MOV R6,#3 CLR C B3:MOV A,@R0 RLC A MOV @R0,A INC R0 DJNZ R6,B3 MOV R0,#70H MOV R6,#3 B4:MOV A,@R0 ADDC A,@R0 DA A MOV @R0,A INC R0 DJNZ R6,B4 DJNZ R7,B2 POP 07H POP 06H POP 00H RET BCD32:PUSH 00H PUSH 06H PUSH 07H MOV R0,#70H MOV R7,#4 CLR A C1:MOV @R0,A INC R0 DJNZ R7,C1 MOV R7,#32 C2:MOV R0,#01H MOV R6,#4 CLR C C3:MOV A,@R0 RLC A MOV @R0,A INC R0 DJNZ R6,C3 MOV R0,#70H MOV R6,#4 C4:MOV A,@R0 ADDC A,@R0 DA A MOV @R0,A INC R0 DJNZ R6,C4 DJNZ R7,C2 POP 07H POP 06H POP 00H RET DCBB:MOV A,R2 ANL A,#0FH MOV R1,A MOV A,R2 SWAP A ANL A,#0FH MOV B,#10 MUL AB ADD A,R1 MOV R1,A MOV A,R3 ANL A,#0FH MOV B,#100 MUL AB ADD A,R1 MOV R1,A RET DCB:CLR A MOV R1,A MOV R2,A MOV R3,A MOV R0,#06H MOV R7,#3 D1:PUSH 04H MOV R4,#10 LCALL MU1 POP 04H MOV A,@R0 ANL A,#0F0H SWAP A ACALL DCBA PUSH 04H MOV R4,#10 LCALL MU1 POP 04H MOV A,@R0 ANL A,#0FH ACALL DCBA DEC R0 DJNZ R7,D1 RET DCBA:ADD A,R1 MOV R1,A CLR A ADDC A,R2 MOV R2,A CLR A ADDC A,R3 MOV R3,A RET MU1:PUSH 00H PUSH 05H PUSH 07H MOV R0,#01H MOV R5,#0 MOV R7,#3 CLR C MU10:MOV A,@R0 MOV B,R4 PUSH PSW MUL AB POP PSW ADDC A,R5 MOV @R0,A MOV R5,B INC R0 DJNZ R7,MU10 POP 07H POP 05H POP 00H RET MU2:PUSH 00H PUSH 07H MOV R0,#70H MOV R7,#5 CLR A MU20:MOV @R0,A INC R0 DJNZ R7,MU20 MOV A,R4 MOV B,R1 MUL AB MOV R0,#70H ACALL MU2A MOV A,R4 MOV B,R2 MUL AB MOV R0,#71H ACALL MU2A MOV A,R5 MOV B,R1 MUL AB MOV R0,#71H ACALL MU2A MOV A,R4 MOV B,R3 MUL AB MOV R0,#72H ACALL MU2A MOV A,R5 MOV B,R2 MUL AB MOV R0,#72H ACALL MU2A MOV A,R5 MOV B,R3 MUL AB MOV R0,#73H ACALL MU2A MOV R1,70H MOV R2,71H MOV R3,72H MOV R4,73H POP 07H POP 00H RET MU2A:ADD A,@R0 MOV @R0,A INC R0 MOV A,B ADDC A,@R0 MOV @R0,A MU2B:MOV F0,C CJNE R0,#74H,MU2C RET MU2C:INC R0 CLR A MOV C,F0 ADDC A,@R0 MOV @R0,A SJMP MU2B MU3:PUSH 00H PUSH 07H MOV R0,#70H MOV R7,#6 CLR A MU30:MOV @R0,A INC R0 DJNZ R7,MU30 MOV A,R4 MOV B,R1 MUL AB MOV R0,#70H ACALL MU3A MOV A,R4 MOV B,R2 MUL AB MOV R0,#71H ACALL MU3A MOV A,R5 MOV B,R1 MUL AB MOV R0,#71H ACALL MU3A MOV A,R4 MOV B,R3 MUL AB MOV R0,#72H ACALL MU3A MOV A,R5 MOV B,R2 MUL AB MOV R0,#72H ACALL MU3A MOV A,R6 MOV B,R1 MUL AB MOV R0,#72H ACALL MU3A MOV A,R5 MOV B,R3 MUL AB MOV R0,#73H ACALL MU3A MOV A,R6 MOV B,R2 MUL AB MOV R0,#73H ACALL MU3A MOV A,R6 MOV B,R3 MUL AB MOV R0,#74H ACALL MU3A POP 07H POP 00H RET MU3A:ADD A,@R0 MOV @R0,A INC R0 MOV A,B ADDC A,@R0 MOV @R0,A MU3B:MOV F0,C CJNE R0,#75H,MU3C RET MU3C:INC R0 CLR A MOV C,F0 ADDC A,@R0 MOV @R0,A SJMP MU3B MU4:PUSH 00H PUSH 06H PUSH 07H MOV R0,#01H MOV R6,#0 MOV R7,#4 CLR C MU40:MOV A,@R0 MOV B,R5 PUSH PSW MUL AB POP PSW ADDC A,R6 MOV @R0,A MOV R6,B INC R0 DJNZ R7,MU40 POP 07H POP 06H POP 00H RET CPC:MOV A,R1 ADD A,#1 MOV R1,A MOV A,R2 ADDC A,#0 MOV R2,A MOV A,R3 ADDC A,#0 MOV R3,A RET DV1:PUSH 05H PUSH 06H PUSH 07H CLR A MOV R5,A MOV R6,A MOV R7,#24 CLR F0 ACALL RLN1 DV10:CLR C MOV A,R5 SUBB A,R4 MOV R5,A MOV A,R6 SUBB A,#0 MOV R6,A JC DV12 SETB F0 DV11:ACALL RLN1 DJNZ R7,DV10 POP 07H POP 06H POP 05H RET DV12:MOV A,R5 ADD A,R4 MOV R5,A MOV A,R6 ADDC A,#0 MOV R6,A CLR F0 SJMP DV11 RLN1:MOV C,F0 MOV A,R1 RLC A MOV R1,A MOV A,R2 RLC A MOV R2,A MOV A,R3 RLC A MOV R3,A MOV A,R5 RLC A MOV R5,A MOV A,R6 RLC A MOV R6,A RET DV2:PUSH 07H CLR A MOV 70H,A MOV 71H,A MOV 72H,A MOV R7,#32 CLR F0 ACALL RLN2 DV20:CLR C MOV A,70H SUBB A,R5 MOV 70H,A MOV A,71H SUBB A,R6 MOV 71H,A MOV A,72H SUBB A,#0 MOV 72H,A JC DV22 SETB F0 DV21:ACALL RLN2 DJNZ R7,DV20 CLR C MOV A,70H SUBB A,R5 MOV A,71H SUBB A,R6 MOV A,72H SUBB A,#0 JC DV2X ACALL CPC DV2X:POP 07H RET DV22:MOV A,70H ADD A,R5 MOV 70H,A MOV A,71H ADDC A,R6 MOV 71H,A MOV A,72H ADDC A,#0 MOV 72H,A CLR F0 SJMP DV21 RLN2:MOV C,F0 MOV A,R1 RLC A MOV R1,A MOV A,R2 RLC A MOV R2,A MOV A,R3 RLC A MOV R3,A MOV A,R4 RLC A MOV R4,A MOV A,70H RLC A MOV 70H,A MOV A,71H RLC A MOV 71H,A MOV A,72H RLC A MOV 72H,A RET DV3:PUSH 00H PUSH 06H PUSH 07H MOV R0,#75H MOV R7,#3 CLR A DV30:MOV @R0,A INC R0 DJNZ R7,DV30 MOV R7,#40 CLR F0 ACALL RLN3 DV31:CLR C MOV R0,#75H MOV R1,#79H MOV R6,#3 DV32:MOV A,@R0 SUBB A,@R1 MOV @R0,A INC R0 INC R1 DJNZ R6,DV32 JC DV36 SETB F0 DV33:ACALL RLN3 DJNZ R7,DV31 MOV R1,70H MOV R2,71H MOV R3,72H POP 07H POP 06H POP 00H RET DV36:CLR C MOV R0,#75H MOV R1,#79H MOV R6,#3 DV37:MOV A,@R0 ADDC A,@R1 MOV @R0,A INC R0 INC R1 DJNZ R6,DV37 CLR F0 SJMP DV33 RLN3:MOV C,F0 MOV R0,#70H MOV R6,#8 RLN31:MOV A,@R0 RLC A MOV @R0,A INC R0 DJNZ R6,RLN31 RET BB:PUSH 27H PUSH 2EH PUSH 4AH PUSH 4BH CLR A MOV 4AH,A MOV 4BH,A ANL 27H,#32H MOV 2EH,#00H MOV 2DH,#15H MOV 2CH,#01H MOV 2BH,#05H MOV 2AH,#1AH MOV 29H,#10H MOV 28H,#1 BB0:LCALL KA JB 07H,BB7 JB 08H,BB1 MOV 28H,A SJMP BB0 BB1:MOV A,28H CJNE A,#1,BB2 ACALL TOTC SJMP BB7 BB2:CJNE A,#2,BB3 ACALL TOTH SJMP BB7 BB3:CJNE A,#3,BB7 ACALL TOTA BB7:POP 4BH POP 4AH POP 2EH POP 27H RET TOA:MOV DPL,6EH MOV DPH,6FH LCALL CO MOV A,5EH ADD A,60H MOV 60H,A MOV A,5FH ADDC A,61H MOV 61H,A CLR A ADDC A,62H MOV 62H,A CLR A ADDC A,63H MOV 63H,A MOV DPL,6EH MOV DPH,6FH MOV A,51H ORL A,#0A0H LCALL WRIT LCALL LH15 RET TOB:CLR A MOV 60H,A MOV 61H,A MOV 62H,A MOV 63H,A RET TOC:MOV DPL,6EH MOV DPH,6FH LCALL CO MOV A,5EH ADD A,60H MOV 60H,A MOV A,5FH ADDC A,61H MOV 61H,A CLR A ADDC A,62H MOV 62H,A CLR A ADDC A,63H MOV 63H,A MOV DPL,6EH MOV DPH,6FH LCALL LH15 RET TOTC:CLR 17H CLR 18H ACALL TOB OC0:MOV DPTR,#1000H OC1:MOV 6EH,DPL MOV 6FH,DPH LCALL READ ANL A,#0F0H JZ OC6 CJNE A,#0F0H,OC5 SETB 17H ACALL TOA OC2:MOV 6EH,DPL MOV 6FH,DPH LCALL READ MOV R4,A ANL A,#0F0H JZ OC4 CJNE A,#0F0H,OC3 MOV A,R4 ANL A,#0FH CJNE A,51H,OC3 INC DPTR LCALL READ CJNE A,52H,OC3 INC DPTR LCALL READ CJNE A,53H,OC3 ACALL TOA SJMP OC2 OC3:MOV DPL,6EH MOV DPH,6FH LCALL LH15 SJMP OC2 OC4:LCALL TCP ACALL TOB SJMP OC0 OC5:LCALL LH15 SJMP OC1 OC6:JB 17H,OC8 LCALL E13 OC7:LCALL CL15 RET OC8:LCALL TT2 MOV DPTR,#1000H OC9:LCALL READ JZ OC7 ORL A,#0F0H LCALL WRIT LCALL LH15 SJMP OC9 TOTH:CLR 17H CLR 18H ACALL TOB OH0:MOV DPTR,#1000H OH1:MOV 6EH,DPL MOV 6FH,DPH LCALL READ ANL A,#0F0H JZ OH6 CJNE A,#0F0H,OH5 SETB 17H ACALL TOA OH2:MOV 6EH,DPL MOV 6FH,DPH LCALL READ ANL A,#0F0H JZ OH4 CJNE A,#0F0H,OH3 CLR C MOV A,DPL ADD A,#8 MOV DPL,A MOV A,DPH ADDC A,#0 MOV DPH,A LCALL READ CJNE A,59H,OH3 ACALL TOA SJMP OH2 OH3:MOV DPL,6EH MOV DPH,6FH LCALL LH15 SJMP OH2 OH4:LCALL THP ACALL TOB SJMP OH0 OH5:LCALL LH15 SJMP OH1 OH6:JB 17H,OH8 LCALL E13 OH7:LCALL CL15 RET OH8:LCALL TT2 MOV DPTR,#1000H OH9:LCALL READ JZ OH7 ORL A,#0F0H LCALL WRIT LCALL LH15 SJMP OH9 TOTA:CLR 17H ACALL TOB MOV DPTR,#1000H OA1:MOV 6EH,DPL MOV 6FH,DPH LCALL READ JZ OA2 SETB 17H ACALL TOC MOV DPL,6EH MOV DPH,6FH LCALL LH15 SJMP OA1 OA2:JNB 17H,OA3 LCALL TAP RET OA3:LCALL E13 RET V:MOV DPTR,#7FFFH LCALL READ CJNE A,#0AAH,V0 RET V0:MOV 2EH,#00H MOV 2DH,#13H MOV 2CH,#1AH MOV 2BH,#02H MOV 2AH,#00H MOV 29H,#00H MOV 28H,#00H MOV 27H,#00H MOV DPTR,#7FFFH MOV A,#0AAH LCALL WRIT MOV DPTR,#7F40H MOV R7,#80 V1:CLR A LCALL WRIT INC DPTR DJNZ R7,V1 MOV DPTR,#7F00H MOV A,#01H LCALL WRIT INC DPTR CLR A LCALL WRIT INC DPTR CLR A LCALL WRIT INC DPTR CLR A LCALL WRIT INC DPTR CLR A LCALL WRIT MOV DPTR,#7F27H MOV A,#99H LCALL WRIT INC DPTR MOV A,#34H LCALL WRIT INC DPTR MOV A,#12H LCALL WRIT INC DPTR MOV R7,#6 V2:CLR A LCALL WRIT INC DPTR DJNZ R7,V2 MOV DPTR,#7F07H MOV R7,#9 V3:MOV A,#88H LCALL WRIT INC DPTR DJNZ R7,V3 MOV DPTR,#7F10H MOV A,#10 LCALL WRIT INC DPTR CLR A LCALL WRIT INC DPTR MOV A,#30H LCALL WRIT INC DPTR MOV A,#75H LCALL WRIT INC DPTR CLR A LCALL WRIT INC DPTR MOV A,#23H LCALL WRIT INC DPTR MOV A,#34H LCALL WRIT INC DPTR MOV A,#12H LCALL WRIT INC DPTR MOV A,#10H MOV A,#0 LCALL WRIT INC DPTR MOV A,#27H MOV A,#0 LCALL WRIT MOV DPTR,#0000H V4:LCALL WP MOV A,DPL ADD A,#32 MOV DPL,A MOV A,DPH ADDC A,#0 MOV DPH,A CJNE A,#7FH,V4 MOV DPTR,#0000H V5:LCALL READ JNZ V6 INC DPTR MOV A,DPH CJNE A,#7FH,V5 RET V6:LCALL E11 RET BT1:NOP BT10:SETB P3.4 JNB P3.4,BT11 RET BT11:MOV R0,#20H MOV A,2EH MOVX @R0,A INC R0 MOV A,27H MOVX @R0,A PUSH 27H PUSH 2EH ANL 27H,#32H MOV 7FH,2EH MOV 2EH,#0 LCALL MM1 JB 22H,BTKL;进入扣率功能密码正确,扣率重量标定 JB 09H,BT13 JB 1EH,BT19 BT12:NOP POP 2EH POP 27H LCALL U MOV DPL,#18H MOV A,#10H MOV A,#0 ;MOV 38H,A ;LCALL WRIT INC DPL MOV A,#27H MOV A,#0 ;MOV 39H,A ;LCALL WRIT RET BT13:MOV 28H,#1 MOV 29H,#10H MOV 2AH,#10H MOV 2BH,#15H MOV 2CH,#0AH MOV 2DH,#0CH BT14:LCALL KA JB 07H,BT12 JB 08H,BT15 MOV 28H,A SJMP BT14 BT15:MOV A,28H CJNE A,#1,BT16 LCALL BTC SJMP BT12 BT16:CJNE A,#2,BT17 LCALL BTZ SJMP BT12 BT17:CJNE A,#3,BT18 LCALL BTBZ SJMP BT12 BT18:CJNE A,#4,BT12 LCALL BTV SJMP BT12 BT19:LCALL BTBS POP 2EH POP 27H RET BTKL:CLR 0CH CLR A MOV 70H,A MOV 71H,A MOV 72H,A;初始显示P 0 MOV R0,#20H MOVX A,@R0 MOV 2EH,A INC R0 MOVX A,@R0 MOV 27H,A CLR 2CH BTK1:LCALL SY;将70~72H中内容送28~2DH显示 MOV 2DH,#11H;显示- SJMP BTK11 BTK10:LCALL SY MOV 2DH,#10H BTK11:LCALL KA JNB 2BH,BTK12;清除键按下标志位 CPL 2CH;扣率加减标志位 SJMP BTK13 BTK12:JB 07H,BTK5 JB 08H,BTK2 LCALL BTCA BTK13:JNB 2CH,BTK1 SJMP BTK10 BTK2:JNB 2CH,BTK21 MOV A,#01H MOV DPTR,#7F28H CALL WRIT SJMP BTK22 BTK21:CLR A MOV DPTR,#7F28H CALL WRIT BTK22:LCALL BTCB ;MOV A,R1;判断皮重是否为0 ;JNZ ZP3 ;MOV A,R2 ;JNZ ZP3 ;RET BTK3:MOV R3,#0 MOV R4,30H CALL DV1 MOV 38H,R1 MOV 39H,R2 MOV A,R1 MOV DPTR,#7F18H LCALL WRIT MOV A,R2 MOV DPTR,#7F19H LCALL WRIT MOV R0,#0 MOV A,R1 MOVX @R0,A INC R0 MOV A,R2 MOVX @R0,A ;ORL 27H,#08H ;SETB 2AH;是否重新打印菜单头标志位 BTK5:POP 2EH POP 27H ;LCALL BTKLAAD RET ;BTK4:CLR 15H ;ANL 27H,#0F7H ;CLR A ;MOV 6CH,A ;MOV 6DH,A XX:MOV R0,#28H XX1:XCH A,@R0 INC R0 DJNZ R7,XX1 RET X2:MOV R7,#2 ACALL XX RET X3:MOV R7,#3 ACALL XX RET X4:MOV R7,#4 ACALL XX RET X5:MOV R7,#5 ACALL XX RET X6:MOV R7,#6 ACALL XX RET BTBZ:MOV DPTR,#7F18H MOV A,#10H MOV A,#0 ;MOV 38H,A ;LCALL WRIT INC DPTR MOV A,#27H MOV A,#0 ;MOV 39H,A ;LCALL WRIT BTBZ0:JNB 04H,BTBZ1 CLR 04H LCALL SU MOV R4,30H LCALL DV1 LCALL CPB LCALL BEX MOV R4,30H LCALL MU1 LCALL BCD24 LCALL SY BTBZ1:LCALL KY CJNE A,#16,BTBZ2 LCALL ADS SJMP BTBZ4 BTBZ2:CJNE A,#15,BTBZ0 RET BTBZ3:LCALL E14 SJMP BTBZ0 BTBZ4:CLR C MOV A,R1 SUBB A,43H MOV 54H,A MOV A,R2 SUBB A,44H MOV 55H,A MOV A,R3 SUBB A,45H MOV 56H,A JC BTBZ3 MOV A,54H SUBB A,#20 MOV A,55H SUBB A,#0 MOV A,56H SUBB A,#0 JC BTBZ3 BTBZ5:CLR A MOV R1,A MOV R2,A MOV R3,A LCALL BCD24 CLR 0CH BTBZ6:LCALL SY LCALL KA JB 07H,BTBZ10 JB 08H,BTBZ7 LCALL BTCA SJMP BTBZ6 BTBZ7:LCALL BTCB MOV A,R1 JNZ BTBZ8 MOV A,R2 JNZ BTBZ8 MOV A,R3 JNZ BTBZ8 SJMP BTBZ5 BTBZ8:NOP MOV 3DH,R1 MOV 3EH,R2 MOV 3FH,R3 MOV 3AH,54H MOV 3BH,55H MOV 3CH,56H MOV DPTR,#7F1AH MOV R0,#3AH MOV R7,#6 BTBZ9:MOV A,@R0 LCALL WRIT INC R0 INC DPTR DJNZ R7,BTBZ9 BTBZ10:RET BTVX:MOV 2DH,#19H MOV A,#10H MOV 2BH,A MOV 2AH,A MOV 29H,A MOV 28H,A RET BTVY:LCALL BCD24 MOV R0,#28H MOV R1,#70H MOV R7,#3 BTVY1:MOV A,@R1 ANL A,#0FH MOV @R0,A INC R0 MOV A,@R1 SWAP A ANL A,#0FH MOV @R0,A INC R0 INC R1 DJNZ R7,BTVY1 RET BTVU:MOV A,29H SWAP A ORL A,28H MOV R4,A MOV A,2BH SWAP A ORL A,2AH MOV R5,A MOV A,2DH SWAP A ORL A,2CH MOV R6,A LCALL DCB RET BTV:NOP MOV 2EH,#00H CALL BTVX MOV 2CH,#1 MOV R7,#200 BTV0:LCALL DL2 DJNZ R7,BTV0 MOV R1,3AH MOV R2,3BH MOV R3,3CH LCALL BTVY BTV1:LCALL KA JB 07H,BTV3 JB 08H,BTV2 LCALL X6 SJMP BTV1 BTV2:CALL BTVU MOV DPTR,#7F1AH MOV A,R1 MOV 3AH,A LCALL WRIT INC DPTR MOV A,R2 MOV 3BH,A LCALL WRIT INC DPTR MOV A,R3 MOV 3CH,A LCALL WRIT BTV3:CALL BTVX MOV 2CH,#2 MOV R7,#200 BTV4:LCALL DL2 DJNZ R7,BTV4 MOV R1,3DH MOV R2,3EH MOV R3,3FH LCALL BTVY BTV5:LCALL KA JB 07H,BTV7 JB 08H,BTV6 LCALL X6 SJMP BTV5 BTV6:CALL BTVU MOV DPTR,#7F1DH MOV A,R1 MOV 3DH,A LCALL WRIT INC DPTR MOV A,R2 MOV 3EH,A LCALL WRIT INC DPTR MOV A,R3 MOV 3FH,A LCALL WRIT BTV7:RET BTBS:NOP MOV 2EH,#04H CLR 0CH MOV R1,38H MOV R2,39H MOV R3,#0 LCALL BCD24 MOV R0,#70H MOV A,@R0 ANL A,#0FH MOV 28H,A MOV A,@R0 SWAP A ANL A,#0FH MOV 29H,A INC R0 MOV A,@R0 ANL A,#0FH MOV 2AH,A MOV A,@R0 SWAP A ANL A,#0FH MOV 2BH,A INC R0 MOV A,@R0 ANL A,#0FH MOV 2CH,A MOV 2DH,#10H BTBS1:LCALL KA JB 07H,BTBS4 JB 08H,BTBS2 LCALL X5 SJMP BTBS1 BTBS2:MOV A,29H SWAP A ORL A,28H MOV R4,A MOV A,2BH SWAP A ORL A,2AH MOV R5,A MOV R6,2CH LCALL DCB MOV A,R1 JNZ BTBS3 MOV A,R2 JNZ BTBS3 SJMP BTBS4 BTBS3:MOV DPTR,#7F18H MOV A,R1 MOV 38H,A LCALL WRIT INC DPTR MOV A,R2 MOV 39H,A LCALL WRIT BTBS4:RET KV:MOV R0,#0AH;保存未经扣率重量以备BEX(判断稳定)用 MOV A,R1 MOVX @R0,A INC R0 MOV A,R2 MOVX @R0,A JB 27H,KV4 CLR C;扣率,以直接减加重量的方式 JB 2CH,KV1;加重量标志,此标志在按清除后改变 MOV R0,#26H MOV A,R1 MOVX @R0,A INC R0 SUBB A,38H MOV R1,A MOV A,R2 MOVX @R0,A INC R0 SUBB A,39H MOV R2,A MOV A,R3 MOVX @R0,A SUBB A,#0 MOV R3,A JC KV3 JMP KV4 KV1:MOV A,R1 ADD A,38H MOV R1,A MOV A,R2 ADDC A,39H MOV R2,A MOV A,R3 ADDC A,#0 MOV R3,A KV2:JMP KV4 KV3: MOV R0,#26H MOVX A,@R0 MOV R1,A INC R0 MOVX A,@R0 MOV R2,A INC R0 MOVX A,@R0 MOV R3,A KV4:MOV 46H,R1 MOV 47H,R2 RET MM1:CLR 09H CLR 1EH CLR 22H MOV R0,#28H MOV R7,#6 MOV A,#10H MM10:MOV @R0,A INC R0 DJNZ R7,MM10 MM11:LCALL KA JB 07H,MM12 JB 08H,MM13 JB 2BH,MM11 LCALL X6 SJMP MM11 MM12:CLR A MOV 38H,A MOV 39H,A MOV DPTR,#7F18H CALL WRIT INC DPTR CALL WRIT RET MM13:MOV A,2AH;先判断是否两位密码正确,若是,则进入扣率状态 CJNE A,#10H,MM131 MOV DPTR,#7F27H LCALL READ MOV R0,A MOV R1,#29H MOV A,R0 SWAP A ANL A,#0FH XRL A,@R1 JNZ MM54 DEC R1 MOV A,R0 ANL A,#0FH XRL A,@R1 JNZ MM54 ;SETB 09H SETB 22H MM54:RET MM131:MOV R1,#2DH MOV A,#5 XRL A,@R1 JNZ MM14 DEC R1 MOV A,#1 XRL A,@R1 JNZ MM14 DEC R1 MOV A,#6 XRL A,@R1 JNZ MM14 DEC R1 MOV A,#4 XRL A,@R1 JNZ MM14 DEC R1 MOV A,#2 XRL A,@R1 JNZ MM14 DEC R1 MOV A,#8 XRL A,@R1 JNZ MM14 SETB 09H RET MM14:LCALL TMR MOV R1,#2DH MOV A,54H SWAP A ANL A,#0FH XRL A,@R1 JNZ MM15 DEC R1 MOV A,55H SWAP A ANL A,#0FH XRL A,@R1 JNZ MM15 DEC R1 MOV A,56H SWAP A ANL A,#0FH XRL A,@R1 JNZ MM15 DEC R1 MOV A,54H ANL A,#0FH XRL A,@R1 JNZ MM15 DEC R1 MOV A,55H ANL A,#0FH XRL A,@R1 JNZ MM15 DEC R1 MOV A,56H ANL A,#0FH XRL A,@R1 JNZ MM15 SETB 09H RET MM15:MOV DPTR,#7F07H ACALL MMR MOV R0,#78H MOV R1,#28H MOV R7,#6 MM17:MOV A,@R0 XRL A,@R1 JNZ MM18 INC R0 INC R1 DJNZ R7,MM17 SETB 09H RET MM18:MOV DPTR,#7F27H ACALL MMR MOV R0,#78H MOV R1,#28H MOV R7,#6 MM19:MOV A,@R0 XRL A,@R1 JNZ MM1A INC R0 INC R1 DJNZ R7,MM19 SETB 1EH RET MM1A:MOV R1,#2DH MOV A,#5 XRL A,@R1 JNZ MM1B DEC R1 MOV A,#0 XRL A,@R1 JNZ MM1B DEC R1 MOV A,#3 XRL A,@R1 JNZ MM1B DEC R1 MOV A,#1 XRL A,@R1 JNZ MM1B DEC R1 MOV A,#2 XRL A,@R1 JNZ MM1B DEC R1 MOV A,#8 XRL A,@R1 JNZ MM1B LCALL MMG RET MM1B:MOV R1,#2DH MOV A,#5 XRL A,@R1 JNZ MM1C DEC R1 MOV A,#7 XRL A,@R1 JNZ MM1C DEC R1 MOV A,#2 XRL A,@R1 JNZ MM1C DEC R1 MOV A,#5 XRL A,@R1 JNZ MM1C DEC R1 MOV A,#7 XRL A,@R1 JNZ MM1C DEC R1 MOV A,#2 XRL A,@R1 JNZ MM1C LCALL MMH MM1C:RET MMG:MOV DPTR,#7F2AH LCALL MMRX MMG1:LCALL KA JB 07H,MMG7 JB 08H,MMG2 LCALL X6 SJMP MMG1 MMG2:MOV DPTR,#7F2AH LCALL MMW MOV DPTR,#7F2DH LCALL MMRX MOV 2EH,#15H MMG3:LCALL KA JB 07H,MMG7 JB 08H,MMG4 LCALL X6 SJMP MMG3 MMG4:MOV DPTR,#7F2DH LCALL MMW MOV 2EH,#00H MMG7:RET MMH:MOV DPTR,#7F27H MOV R0,#28H LCALL READ MOV R1,A ANL A,#0FH MOV @R0,A INC R0 MOV A,R1 SWAP A ANL A,#0FH MOV @R0,A MOV R7,#4 MOV A,#10H MMH0:INC R0 MOV @R0,A DJNZ R7,MMH0 MMH1:LCALL KA JB 07H,MMH7 JB 08H,MMH6 LCALL X2 SJMP MMH1 MMH6:MOV DPTR,#7F27H MOV A,29H ANL A,#0FH SWAP A MOV R1,A MOV A,28H ANL A,#0FH ORL A,R1 LCALL WRIT MMH7:RET BT2:NOP PUSH 27H PUSH 2EH MOV 27H,#0 MOV 2EH,#0 ACALL MM2 JB 09H,BT21 BT20:NOP POP 2EH POP 27H RET BT21:LCALL DSGJ SJMP BT20 BT3:NOP PUSH 27H PUSH 2EH MOV 27H,#0 MOV 2EH,#0 ACALL MM3 JB 09H,BT31 BT30:NOP POP 2EH POP 27H RET BT31:LCALL CZCC SJMP BT30 BT4:NOP PUSH 27H PUSH 2EH MOV 27H,#0 MOV 2EH,#0 ACALL MM4 JB 09H,BT41 BT40:NOP POP 2EH POP 27H RET BT41:NOP MOV DPTR,#7F03H LCALL READ MOV R1,A ANL A,#0FH MOV 28H,A MOV A,R1 SWAP A ANL A,#0FH MOV 29H,A INC DPTR LCALL READ MOV R1,A ANL A,#0FH MOV 2AH,A MOV A,R1 SWAP A ANL A,#0FH MOV 2BH,A JNZ BT42 MOV 2BH,#10H MOV A,2AH JNZ BT42 MOV 2AH,#10H MOV A,29H JNZ BT42 MOV 29H,#10H BT42:MOV A,#10H MOV 2CH,A MOV 2DH,A BT43:LCALL KY CJNE A,#15,BT44 SJMP BT40 BT44:CJNE A,#12,BT43 MOV DPTR,#7F03H CLR A LCALL WRIT INC DPTR CLR A LCALL WRIT SJMP BT40 MM2:NOP CLR 09H MOV R0,#28H MOV R7,#6 MOV A,#10H MM20:MOV @R0,A INC R0 DJNZ R7,MM20 MM21:LCALL KA JB 07H,MM22 JB 08H,MM23 LCALL X6 SJMP MM21 MM22:RET MM23:MOV R1,#2DH MOV A,#1 XRL A,@R1 JNZ MM24 DEC R1 MOV A,#8 XRL A,@R1 JNZ MM24 DEC R1 MOV A,#7 XRL A,@R1 JNZ MM24 DEC R1 MOV A,#2 XRL A,@R1 JNZ MM24 DEC R1 MOV A,#1 XRL A,@R1 JNZ MM24 DEC R1 MOV A,#6 XRL A,@R1 JNZ MM24 SETB 09H RET MM24:LCALL TMR MOV R1,#2DH MOV A,54H SWAP A ANL A,#0FH XRL A,@R1 JNZ MM25 DEC R1 MOV A,56H SWAP A ANL A,#0FH XRL A,@R1 JNZ MM25 DEC R1 MOV A,55H SWAP A ANL A,#0FH XRL A,@R1 JNZ MM25 DEC R1 MOV A,56H ANL A,#0FH XRL A,@R1 JNZ MM25 DEC R1 MOV A,54H ANL A,#0FH XRL A,@R1 JNZ MM25 DEC R1 MOV A,55H ANL A,#0FH XRL A,@R1 JNZ MM25 SETB 09H RET MM25:MOV DPTR,#7F0AH ACALL MMR MOV R0,#78H MOV R1,#28H MOV R7,#6 MM27:MOV A,@R0 XRL A,@R1 JNZ MM28 INC R0 INC R1 DJNZ R7,MM27 SETB 09H MM28:RET MM3:NOP CLR 09H MOV R0,#28H MOV R7,#6 MOV A,#10H MM30:MOV @R0,A INC R0 DJNZ R7,MM30 MM31:LCALL KA JB 07H,MM32 JB 08H,MM33 LCALL X6 SJMP MM31 MM32:RET MM33:MOV R1,#2DH MOV A,#4 XRL A,@R1 JNZ MM34 DEC R1 MOV A,#9 XRL A,@R1 JNZ MM34 DEC R1 MOV A,#5 XRL A,@R1 JNZ MM34 DEC R1 MOV A,#7 XRL A,@R1 JNZ MM34 DEC R1 MOV A,#7 XRL A,@R1 JNZ MM34 DEC R1 MOV A,#6 XRL A,@R1 JNZ MM34 SETB 09H RET MM34:LCALL TMR MOV R1,#2DH MOV A,54H SWAP A ANL A,#0FH XRL A,@R1 JNZ MM35 DEC R1 MOV A,55H SWAP A ANL A,#0FH XRL A,@R1 JNZ MM35 DEC R1 MOV A,56H SWAP A ANL A,#0FH XRL A,@R1 JNZ MM35 DEC R1 MOV A,56H ANL A,#0FH XRL A,@R1 JNZ MM35 DEC R1 MOV A,55H ANL A,#0FH XRL A,@R1 JNZ MM35 DEC R1 MOV A,54H ANL A,#0FH XRL A,@R1 JNZ MM35 SETB 09H RET MM35:MOV DPTR,#7F0DH ACALL MMR MOV R0,#78H MOV R1,#28H MOV R7,#6 MM37:MOV A,@R0 XRL A,@R1 JNZ MM38 INC R0 INC R1 DJNZ R7,MM37 SETB 09H MM38:RET MM4:NOP CLR 09H MOV R0,#28H MOV R7,#6 MOV A,#10H MM40:MOV @R0,A INC R0 DJNZ R7,MM40 MM41:LCALL KA JB 07H,MM42 JB 08H,MM43 LCALL X4 SJMP MM41 MM42:RET MM43:MOV R1,#2BH MOV A,#2 XRL A,@R1 JNZ MM44 DEC R1 MOV A,#0 XRL A,@R1 JNZ MM44 DEC R1 MOV A,#0 XRL A,@R1 JNZ MM44 DEC R1 MOV A,#0 XRL A,@R1 JNZ MM44 SETB 09H MM44:RET MMR:NOP MOV R0,#78H MMR0:MOV R7,#3 MMR1:LCALL READ MOV R1,A ANL A,#0FH MOV @R0,A INC R0 MOV A,R1 SWAP A ANL A,#0FH MOV @R0,A INC R0 INC DPTR DJNZ R7,MMR1 RET MMRX:NOP MOV R0,#28H ACALL MMR0 RET MMW:MOV R0,#78H ACALL DSC MOV R0,#78H MOV R7,#3 MMW1:MOV A,@R0 LCALL WRIT INC R0 INC DPTR DJNZ R7,MMW1 RET DSR:PUSH 07H MOV R0,#78H MOV R7,#6 DSR1:LCALL READ MOV @R0,A INC R0 INC DPTR DJNZ R7,DSR1 POP 07H RET DSW:PUSH 07H MOV R0,#78H MOV R7,#6 DSW1:MOV A,@R0 LCALL WRIT INC R0 INC DPTR DJNZ R7,DSW1 POP 07H RET DSA:MOV 28H,#10H MOV 29H,#10H MOV 2AH,#10H MOV 2CH,#02H MOV 2DH,#0FH MOV 2EH,#10H RET DSB:MOV R1,#28H MOV R7,#3 DSB1:MOV A,@R0 ANL A,#0FH MOV @R1,A INC R1 MOV A,@R0 SWAP A ANL A,#0FH MOV @R1,A INC R0 INC R1 DJNZ R7,DSB1 RET DSC:MOV R1,#28H MOV R7,#3 DSC1:INC R1 MOV A,@R1 SWAP A DEC R1 ORL A,@R1 MOV @R0,A INC R0 INC R1 INC R1 DJNZ R7,DSC1 RET DSD:ACALL DSA DSD0:LCALL KY JZ DSD0 CJNE A,#15,DSD1 SJMP DSD7 DSD1:CJNE A,#16,DSD0 MOV 2EH,#15H MOV DPH,#7FH MOV DPL,7EH ACALL DSR MOV R0,#78H ACALL DSB DSD3:LCALL KA JB 07H,DSD7 JB 08H,DSD4 LCALL X6 SJMP DSD3 DSD4:MOV R0,#78H ACALL DSC MOV 2EH,#00H MOV R0,#7BH ACALL DSB DSD5:LCALL KA JB 07H,DSD7 JB 08H,DSD6 LCALL X6 SJMP DSD5 DSD6:MOV R0,#7BH ACALL DSC MOV DPH,#7FH MOV DPL,7EH ACALL DSW DSD7:RET DSGJ:NOP MOV 28H,#10H MOV 29H,#10H MOV 2AH,#0EH MOV 2BH,#1AH MOV 2CH,#0AH MOV 2DH,#0DH DS0:LCALL KY CJNE A,#15,DS1 SJMP DS4 DS1:CJNE A,#16,DS0 LCALL DTX DS2:LCALL KA JB 07H,DS4 JB 08H,DS3 LCALL X6 SJMP DS2 DS3:MOV A,2DH SWAP A ORL A,2CH MOV 54H,A MOV A,2BH SWAP A ORL A,2AH MOV 55H,A MOV A,29H SWAP A ORL A,28H MOV 56H,A LCALL TMW DS4:MOV A,#10H MOV 28H,A MOV 29H,A MOV 2AH,A MOV 2BH,A MOV 2CH,#02H MOV 2DH,#0FH MOV 2EH,#00H DS5:LCALL KY CJNE A,#15,DS6 SJMP DS9 DS6:CJNE A,#16,DS5 MOV DPTR,#7F0AH ACALL MMRX DS7:LCALL KA JB 07H,DS9 JB 08H,DS8 LCALL X6 SJMP DS7 DS8:MOV DPTR,#7F0AH ACALL MMW DS9:MOV 2BH,#01H MOV 7EH,#40H ACALL DSD MOV 2BH,#02H MOV 7EH,#48H ACALL DSD MOV 2BH,#03H MOV 7EH,#50H ACALL DSD RET CZA:MOV 28H,#10H MOV 29H,#10H MOV 2AH,#10H MOV 2CH,#03H MOV 2DH,#0FH MOV 2EH,#10H RET CZB:NOP ACALL CZA CZB0:LCALL KY JZ CZB0 CJNE A,#15,CZB1 SJMP CZB4 CZB1:CJNE A,#16,CZB0 MOV 2EH,#15H ACALL DSR MOV R0,#78H ACALL DSB CZB2:LCALL KY JZ CZB2 CJNE A,#15,CZB3 SJMP CZB4 CZB3:CJNE A,#16,CZB2 MOV R1,7BH MOV R2,7CH MOV R3,7DH LCALL BCD24 MOV 2EH,7FH LCALL YY1 CZB4:RET YY1:LCALL SY YY10:LCALL KY CJNE A,#15,YY11 RET YY11:CJNE A,#16,YY10 RET CZCC:NOP MOV A,#10H MOV 28H,A MOV 29H,A MOV 2AH,A MOV 2BH,A MOV 2CH,#03H MOV 2DH,#0FH CZ0:LCALL KY CJNE A,#15,CZ1 SJMP CZ6 CZ1:CJNE A,#12,CZ3 MOV 28H,#10H MOV 29H,#11H MOV 2AH,#15H MOV 2BH,#0CH MOV 2CH,#11H MOV 2DH,#10H MOV DPTR,#7F60H MOV R7,#40 CZ2:CLR A LCALL WRIT INC DPTR DJNZ R7,CZ2 SJMP CZCC CZ3:CJNE A,#16,CZ0 MOV DPTR,#7F0DH ACALL MMRX CZ4:LCALL KA JB 07H,CZ6 JB 08H,CZ5 LCALL X6 SJMP CZ4 CZ5:MOV DPTR,#7F0DH ACALL MMW CZ6:NOP MOV 2BH,#01H MOV DPTR,#7F60H ACALL CZB MOV 2BH,#02H MOV DPTR,#7F68H ACALL CZB MOV 2BH,#03H MOV DPTR,#7F70H ACALL CZB MOV 2BH,#04H MOV DPTR,#7F78H ACALL CZB MOV 2BH,#05H MOV DPTR,#7F80H ACALL CZB RET GJPD:LCALL TMR MOV DPTR,#7F40H LCALL DSR MOV A,78H JNZ GJ0 MOV A,79H JNZ GJ0 MOV A,7AH JNZ GJ0 SJMP GJ2 GJ0:CLR C MOV A,56H SUBB A,78H MOV A,55H SUBB A,79H MOV A,54H SUBB A,7AH JNC GJ1 RET GJ1:CLR A MOV 27H,A MOV 28H,#10H MOV 29H,#18H MOV 2AH,#15H MOV 2BH,#0EH MOV 2CH,#13H MOV 2DH,#10H MOV 2EH,A LCALL KY CJNE A,#14,GJ11 LCALL DTX MOV R7,#200 GJ10:LCALL DL2 DJNZ R7,GJ10 SJMP GJ1 GJ11:CJNE A,#16,GJ1 LCALL BH SJMP GJ1 GJ2:MOV DPTR,#7F48H LCALL DSR MOV A,78H JNZ GJ3 MOV A,79H JNZ GJ3 MOV A,7AH JNZ GJ3 SJMP GJ4 GJ3:CLR C MOV A,56H SUBB A,78H MOV A,55H SUBB A,79H MOV A,54H SUBB A,7AH JNC GJ1 RET GJ4:MOV DPTR,#7F50H LCALL DSR MOV A,78H JNZ GJ5 MOV A,79H JNZ GJ5 MOV A,7AH JNZ GJ5 RET GJ5:CLR C MOV A,56H SUBB A,78H MOV A,55H SUBB A,79H MOV A,54H SUBB A,7AH JNC GJ1 RET CLGJ:NOP PUSH 27H PUSH 2EH MOV 27H,#00H MOV 2EH,#00H MOV A,#10H MOV 28H,A MOV 29H,A MOV 2AH,A MOV 2BH,A MOV 2CH,A MOV 2DH,A CG0:LCALL KA JB 07H,CG3 JB 08H,CG1 LCALL X6 SJMP CG0 CG1:MOV A,29H SWAP A ORL A,28H MOV 70H,A MOV A,2BH SWAP A ORL A,2AH MOV 71H,A MOV A,2DH SWAP A ORL A,2CH MOV 72H,A MOV DPTR,#7F40H LCALL DSR MOV A,7BH CJNE A,70H,CG4 MOV A,7CH CJNE A,71H,CG4 MOV A,7DH CJNE A,72H,CG4 MOV DPTR,#7F40H MOV R7,#8 CG2:CLR A LCALL WRIT INC DPTR DJNZ R7,CG2 CG3:NOP POP 2EH POP 27H RET CG4:MOV DPTR,#7F48H LCALL DSR MOV A,7BH CJNE A,70H,CG6 MOV A,7CH CJNE A,71H,CG6 MOV A,7DH CJNE A,72H,CG6 MOV DPTR,#7F40H MOV R7,#16 CG5:CLR A LCALL WRIT INC DPTR DJNZ R7,CG5 SJMP CG3 CG6:MOV DPTR,#7F50H LCALL DSR MOV A,7BH CJNE A,70H,CG3 MOV A,7CH CJNE A,71H,CG3 MOV A,7DH CJNE A,72H,CG3 MOV DPTR,#7F40H MOV R7,#24 CG7:CLR A LCALL WRIT INC DPTR DJNZ R7,CG7 SJMP CG3 BTC:NOP MOV A,#10H MOV 28H,A MOV 29H,A MOV 2AH,A MOV 2BH,A MOV 2CH,#01H MOV 2DH,#0FH BC0:LCALL KY CJNE A,#15,BC1 SJMP BC4 BC1:CJNE A,#16,BC0 MOV DPTR,#7F07H LCALL MMRX BC2:LCALL KA JB 07H,BC4 JB 08H,BC3 LCALL X6 SJMP BC2 BC3:MOV DPTR,#7F07H LCALL MMW BC4:NOP LCALL BTC1 LCALL BTC2 LCALL BTC3 LCALL BTC5 LCALL BTC6 LCALL BTC7 LCALL BTC8 LCALL BTC9 RET BTC1:NOP MOV R1,30H LCALL BCD8 MOV A,R2 ANL A,#0FH MOV 28H,A MOV A,R2 SWAP A ANL A,#0FH MOV 29H,A MOV A,#10H MOV 2AH,A MOV 2BH,A MOV 2CH,A MOV 2DH,#0DH BTC10:LCALL KA JB 07H,BTC18 JB 08H,BTC11 LCALL X2 SJMP BTC10 BTC11:MOV A,29H SWAP A ORL A,28H MOV R2,A CJNE R2,#01H,BTC12 MOV A,#1 SJMP BTC17 BTC12:CJNE R2,#02H,BTC13 MOV A,#2 SJMP BTC17 BTC13:CJNE R2,#05H,BTC14 MOV A,#5 SJMP BTC17 BTC14:CJNE R2,#10H,BTC15 MOV A,#10 SJMP BTC17 BTC15:CJNE R2,#20H,BTC16 MOV A,#20 SJMP BTC17 BTC16:CJNE R2,#50H,BTC10 MOV A,#50 BTC17:MOV 30H,A MOV DPTR,#7F10H LCALL WRIT BTC18:RET BTC2:NOP MOV 28H,31H MOV A,#10H MOV 29H,A MOV 2AH,A MOV 2BH,A MOV 2CH,#0CH MOV 2DH,#0DH BTC20:LCALL KA JB 07H,BTC27 JB 08H,BTC21 MOV 28H,A SJMP BTC20 BTC21:MOV A,28H JNZ BTC22 MOV 2EH,#00H SJMP BTC26 BTC22:CJNE A,#1,BTC23 MOV 2EH,#02H SJMP BTC26 BTC23:CJNE A,#2,BTC24 MOV 2EH,#04H SJMP BTC26 BTC24:CJNE A,#3,BTC25 MOV 2EH,#08H SJMP BTC26 BTC25:CJNE A,#4,BTC20 MOV 2EH,#10H BTC26:MOV 31H,A MOV DPTR,#7F11H LCALL WRIT BTC27:RET BTCA:PUSH ACC MOV R7,#4 BTCA1:CLR C MOV R0,#70H MOV A,@R0 RLC A MOV @R0,A INC R0 MOV A,@R0 RLC A MOV @R0,A INC R0 MOV A,@R0 RLC A MOV @R0,A DJNZ R7,BTCA1 POP ACC ORL A,70H MOV 70H,A RET BTCB:NOP MOV R4,70H MOV R5,71H MOV R6,72H LCALL DCB RET BTC3:NOP MOV R1,32H MOV R2,33H MOV R3,34H LCALL BCD24 CLR 0CH BTC30:LCALL SY LCALL KA JB 07H,BTC32 JB 08H,BTC31 LCALL BTCA SJMP BTC30 BTC31:LCALL BTCB MOV DPTR,#7F12H MOV A,R1 MOV 32H,A LCALL WRIT INC DPTR MOV A,R2 MOV 33H,A LCALL WRIT INC DPTR MOV A,R3 MOV 34H,A LCALL WRIT BTC32:RET BTC4:NOP MOV A,35H SWAP A ANL A,#0FH MOV 28H,A MOV 29H,#10H MOV 2AH,#10H MOV 2BH,#1AH MOV 2CH,#15H MOV 2DH,#0FH MOV 2EH,#00H BTC40:LCALL KA JB 07H,BTC45 JB 08H,BTC41 MOV 28H,A SJMP BTC40 BTC41:MOV A,28H CJNE A,#1,BTC42 SJMP BTC44 BTC42:CJNE A,#2,BTC43 SJMP BTC44 BTC43:CJNE A,#3,BTC40 BTC44:MOV A,28H SWAP A MOV R1,A MOV A,35H ANL A,#0FH ORL A,R1 MOV 35H,A MOV DPTR,#7F15H LCALL WRIT BTC45:RET BTC5:NOP MOV A,35H ANL A,#0FH MOV 28H,A MOV 29H,#10H MOV 2AH,#10H MOV 2BH,#01H MOV 2CH,#01H MOV 2DH,#0FH MOV 2EH,#10H BTC50:LCALL KA JB 07H,BTC58 JB 08H,BTC51 MOV 28H,A SJMP BTC50 BTC51:MOV A,28H JZ BTC57 CJNE A,#1,BTC52 SJMP BTC57 BTC52:CJNE A,#2,BTC53 SJMP BTC57 BTC53:CJNE A,#3,BTC54 SJMP BTC57 BTC54:CJNE A,#4,BTC55 SJMP BTC57 BTC55:CJNE A,#5,BTC56 SJMP BTC57 BTC56:CJNE A,#6,BTC50 BTC57:MOV A,35H ANL A,#0F0H ORL A,28H MOV 35H,A MOV DPTR,#7F15H LCALL WRIT BTC58:RET BTC6:NOP NOP MOV A,36H SWAP A ANL A,#0FH MOV 28H,A MOV 29H,#10H MOV 2AH,#10H MOV 2BH,#02H MOV 2CH,#01H MOV 2DH,#0FH MOV 2EH,#10H BTC60:LCALL KA JB 07H,BTC67 JB 08H,BTC61 MOV 28H,A SJMP BTC60 BTC61:MOV A,28H JZ BTC66 CJNE A,#1,BTC62 SJMP BTC66 BTC62:CJNE A,#2,BTC63 SJMP BTC66 BTC63:CJNE A,#3,BTC64 SJMP BTC66 BTC64:CJNE A,#4,BTC65 SJMP BTC66 BTC65:CJNE A,#5,BTC60 BTC66:MOV A,28H SWAP A MOV R1,A MOV A,36H ANL A,#0FH ORL A,R1 MOV 36H,A MOV DPTR,#7F16H LCALL WRIT BTC67:RET BTC7:NOP NOP MOV A,36H ANL A,#0FH MOV 28H,A MOV 29H,#10H MOV 2AH,#10H MOV 2BH,#03H MOV 2CH,#01H MOV 2DH,#0FH MOV 2EH,#10H BTC70:LCALL KA JB 07H,BTC77 JB 08H,BTC71 MOV 28H,A SJMP BTC70 BTC71:MOV A,28H JZ BTC76 CJNE A,#1,BTC72 SJMP BTC76 BTC72:CJNE A,#2,BTC73 SJMP BTC76 BTC73:CJNE A,#3,BTC74 SJMP BTC76 BTC74:CJNE A,#4,BTC75 SJMP BTC76 BTC75:CJNE A,#5,BTC70 BTC76:MOV A,36H ANL A,#0F0H ORL A,28H MOV 36H,A MOV DPTR,#7F16H LCALL WRIT BTC77:RET BTC8:NOP NOP MOV A,37H SWAP A ANL A,#0FH MOV 28H,A MOV 29H,#10H MOV 2AH,#10H MOV 2BH,#04H MOV 2CH,#01H MOV 2DH,#0FH MOV 2EH,#10H BTC80:LCALL KA JB 07H,BTC83 JB 08H,BTC81 MOV 28H,A SJMP BTC80 BTC81:MOV A,28H JZ BTC82 CJNE A,#1,BTC80 BTC82:MOV A,28H SWAP A MOV R1,A MOV A,37H ANL A,#0FH ORL A,R1 MOV 37H,A MOV DPTR,#7F17H LCALL WRIT BTC83:RET BTC9:NOP NOP MOV A,37H ANL A,#0FH MOV 28H,A MOV 29H,#10H MOV 2AH,#10H MOV 2BH,#05H MOV 2CH,#01H MOV 2DH,#0FH MOV 2EH,#10H BTC90:LCALL KA JB 07H,BTC94 JB 08H,BTC91 MOV 28H,A SJMP BTC90 BTC91:MOV A,28H BTC92:CJNE A,#9,BTC93 SJMP BTC90 BTC93:MOV A,37H ANL A,#0F0H ORL A,28H MOV 37H,A MOV DPTR,#7F17H LCALL WRIT BTC94:RET BTZ:MOV DPTR,#7F18H ;MOV A,#10H MOV A,#0 ;MOV 38H,A;进入标定后扣率不取消 ;LCALL WRIT INC DPTR MOV A,#0 ;MOV A,#27H ;MOV 39H,A ;LCALL WRIT BTZ0:JNB 04H,BTZ1 CLR 04H LCALL ADX LCALL BCD24 CLR 0CH LCALL SY BTZ1:LCALL KY CJNE A,#15,BTZ2 SJMP BTZ3 BTZ2:CJNE A,#16,BTZ0 LCALL ADS MOV DPTR,#7F20H MOV A,R1 MOV 40H,A MOV 43H,A LCALL WRIT INC DPTR MOV A,R2 MOV 41H,A MOV 44H,A LCALL WRIT INC DPTR MOV A,R3 MOV 42H,A MOV 45H,A LCALL WRIT BTZ3:MOV 2EH,7FH BTZ4:JNB 04H,BTZ5 CLR 04H LCALL SU MOV R4,30H LCALL DV1 LCALL CPB LCALL BEX MOV R4,30H LCALL MU1 LCALL BCD24 LCALL SY BTZ5:LCALL KY CJNE A,#16,BTZ6 LCALL ADS SJMP BTZ7 BTZ6:CJNE A,#15,BTZ4 RET BTZ6A:LCALL E14 SJMP BTZ4 BTZ7:CLR C MOV A,R1 SUBB A,43H MOV 54H,A MOV A,R2 SUBB A,44H MOV 55H,A MOV A,R3 SUBB A,45H MOV 56H,A JC BTZ6A MOV A,54H SUBB A,#20 MOV A,55H SUBB A,#0 MOV A,56H SUBB A,#0 JC BTZ6A BTZ8:CLR A MOV R1,A MOV R2,A MOV R3,A LCALL BCD24 CLR 0CH BTZ9:LCALL SY LCALL KA JB 07H,BTZ13 JB 08H,BTZ10 LCALL BTCA SJMP BTZ9 BTZ10:LCALL BTCB MOV A,R1 JNZ BTZ11 MOV A,R2 JNZ BTZ11 MOV A,R3 JNZ BTZ11 SJMP BTZ8 BTZ11:NOP MOV 3DH,R1 MOV 3EH,R2 MOV 3FH,R3 MOV 3AH,54H MOV 3BH,55H MOV 3CH,56H MOV DPTR,#7F1AH MOV R0,#3AH MOV R7,#6 BTZ12:MOV A,@R0 LCALL WRIT INC R0 INC DPTR DJNZ R7,BTZ12 BTZ13:RET KA:NOP CLR 07H CLR 08H CLR 2BH LCALL KY JZ KA CJNE A,#8,KA0 CLR A RET KA0:CJNE A,#1,KA1 MOV A,#1 RET KA1:CJNE A,#5,KA2 MOV A,#2 RET KA2:CJNE A,#9,KA3 MOV A,#3 RET KA3:CJNE A,#2,KA4 MOV A,#4 RET KA4:CJNE A,#6,KA5 MOV A,#5 RET KA5:CJNE A,#10,KA6 MOV A,#6 RET KA6:CJNE A,#3,KA7 MOV A,#7 RET KA7:CJNE A,#7,KA8 MOV A,#8 RET KA8:CJNE A,#11,KA9 MOV A,#9 RET KA9:CJNE A,#15,KA10 SETB 07H RET KA10:CJNE A,#16,KA11 SETB 08H RET KA11:CJNE A,#12,KA SETB 2BH RET BBJ:NOP JB 0CH,BBJ0 JB 1AH,BBJ0 JNB 0EH,BBJ0 SJMP BBJ1 BBJ0:RET BBJ1:NOP PUSH 01H PUSH 02H PUSH 03H MOV R4,30H LCALL MU1 CLR C MOV A,#0F4H SUBB A,R1 MOV A,#01H SUBB A,R2 CLR A SUBB A,R3 JNC BBJ2 SETB 1AH MOV DPTR,#7F03H LCALL READ MOV R1,A INC DPTR LCALL READ MOV R2,A MOV A,R1 ADD A,#1 DA A MOV R1,A MOV A,R2 ADDC A,#0 DA A MOV R2,A MOV DPTR,#7F03H MOV A,R1 LCALL WRIT INC DPTR MOV A,R2 LCALL WRIT BBJ2:POP 03H POP 02H POP 01H RET BBJJ:NOP JB 19H,BJ0 JB 0CH,BJ0 JB 0DH,BJ0 JNB 0EH,BJ0 SJMP BJ1 BJ0:RET BJ1:NOP PUSH 01H PUSH 02H PUSH 03H SETB 19H MOV R4,30H LCALL MU1 CLR C MOV A,67H SUBB A,R1 MOV A,68H SUBB A,R2 MOV A,69H SUBB A,R3 JNC BJX MOV 75H,R1 MOV 76H,R2 MOV 77H,R3 MOV DPTR,#7F68H LCALL DSR ACALL BJC JC BJ2 ACALL BJB MOV DPTR,#7F60H LCALL DSW MOV 67H,75H MOV 68H,76H MOV 69H,77H SJMP BJX BJ2:MOV DPTR,#7F60H LCALL DSW MOV 67H,7BH MOV 68H,7CH MOV 69H,7DH MOV DPTR,#7F70H LCALL DSR ACALL BJC JC BJ3 ACALL BJB MOV DPTR,#7F68H LCALL DSW BJX:NOP POP 03H POP 02H POP 01H RET BJ3:MOV DPTR,#7F68H LCALL DSW MOV DPTR,#7F78H LCALL DSR ACALL BJC JC BJ4 ACALL BJB MOV DPTR,#7F70H LCALL DSW SJMP BJX BJ4:MOV DPTR,#7F70H LCALL DSW MOV DPTR,#7F80H LCALL DSR ACALL BJC JC BJ5 ACALL BJB MOV DPTR,#7F78H LCALL DSW SJMP BJX BJ5:MOV DPTR,#7F78H LCALL DSW ACALL BJB MOV DPTR,#7F80H LCALL DSW SJMP BJX BJB:LCALL TMR MOV 78H,56H MOV 79H,55H MOV 7AH,54H MOV 7BH,75H MOV 7CH,76H MOV 7DH,77H RET BJC:CLR C MOV A,7BH SUBB A,75H MOV A,7CH SUBB A,76H MOV A,7DH SUBB A,77H RET SC:JB 04H,SC0 RET SC0:NOP CLR 04H CLR 11H LCALL SU MOV R4,30H LCALL DV1 LCALL ZR LCALL CPB LCALL BEX LCALL KV;乘以扣率 LCALL BBJ LCALL BBJJ LCALL CZZ JB 0FH,SC4 JNB 15H,SC2;有皮重标志 JNB 0CH,SC1 CLR 0CH LCALL CPA SC1:CLR C MOV A,R1 SUBB A,6CH MOV R1,A MOV A,R2 SUBB A,6DH MOV R2,A MOV A,R3 SUBB A,#0 MOV R3,A JNB ACC.7,SC2 SETB 0CH LCALL CPA SC2:MOV R4,30H LCALL MU1 LCALL BCD24 LCALL SY SC3:LCALL SK RET SC4:MOV A,#11H MOV R0,#28H MOV R7,#6 SC5:MOV @R0,A INC R0 DJNZ R7,SC5 SJMP SC3 CPA:CLR C MOV A,R1 CPL A ADD A,#1 MOV R1,A MOV A,R2 CPL A ADDC A,#0 MOV R2,A MOV A,R3 CPL A ADDC A,#0 MOV R3,A RET CPB:CLR C MOV A,R3 RRC A MOV R3,A MOV A,R2 RRC A MOV R2,A MOV A,R1 RRC A MOV R1,A JNC CPB1 MOV A,R1 ADD A,#1 MOV R1,A MOV A,R2 ADDC A,#0 MOV R2,A MOV A,R3 ADDC A,#0 MOV R3,A CPB1:RET SY:JB 1CH,SY8 JB 1DH,SY9 NOP MOV R0,#70H MOV R1,#78H MOV R7,#3 SY0:MOV A,@R0 ANL A,#0FH MOV @R1,A INC R1 MOV A,@R0 SWAP A ANL A,#0FH MOV @R1,A INC R0 INC R1 DJNZ R7,SY0 MOV R0,#7DH MOV A,2EH JNZ SY1 MOV R7,#5 SJMP SY5 SY1:CJNE A,#02H,SY2 MOV R7,#4 SJMP SY5 SY2:CJNE A,#04H,SY3 MOV R7,#3 SJMP SY5 SY3:CJNE A,#08H,SY4 MOV R7,#2 SJMP SY5 SY4:CJNE A,#10H,SY5 MOV R7,#1 SY5:MOV A,@R0 JNZ SY6 MOV @R0,#10H DEC R0 DJNZ R7,SY5 SY6:JNB 0CH,SY7 INC R0 MOV @R0,#11H SY7:NOP MOV 28H,78H MOV 29H,79H MOV 2AH,7AH MOV 2BH,7BH MOV 2CH,7CH MOV 2DH,7DH RET SY8:CLR 1CH RET SY9:CLR 1DH RET ZR:MOV A,35H ANL A,#0FH JNZ ZR1 RET ZR1:MOV A,R3 JNZ ZR3 MOV A,R2 JNZ ZR3 CLR C MOV A,35H ANL A,#0FH SUBB A,R1 JC ZR3 MOV A,48H DEC A JZ ZR2 MOV 48H,A CLR A MOV R1,A RET ZR2:ACALL ZERO CLR A MOV R1,A ZR3:MOV 48H,#20 RET ZD:CLR C;判断是否小于5d MOV A,R1 SUBB A,#1 MOV A,R2 SUBB A,#0 JC ZD1 JNB 2AH,ZD00;小于扣率范围扣率不起作用选项F1.6=0, ZD0:CLR C MOV R0,#32H;与扣率范围进行比较 MOVX A,@R0 MOV B,A MOV A,R1 SUBB A,B INC R0 MOVX A,@R0 MOV B,A MOV A,R2 SUBB A,B JC ZD1 ZD00:CLR 27H RET ZD1:SETB 27H;小于范围,则27H=1 RET BEX:;MOV A,R1 ;CJNE A,46H,BE1 ;MOV A,R2 ;CJNE A,47H,BE1 MOV R0,#0AH MOVX A,@R0 CJNE A,01H,BE1 INC R0 MOVX A,@R0 CJNE A,02H,BE1 ORL 27H,#04H CLR 0DH CALL ZD SJMP BE2 BE1:MOV 46H,R1 MOV 47H,R2 ANL 27H,#0FBH SETB 0DH BE2:MOV A,R1 JNZ BE3 MOV A,R2 JNZ BE3 CLR 0CH CLR 0EH CLR 19H CLR 1AH ORL 27H,#40H RET BE3:SETB 0EH ANL 27H,#0BFH RET CZX:MOV R1,32H MOV R2,33H MOV R3,34H MOV R4,30H LCALL DV1 MOV R0,#4DH MOV A,R1 ADD A,#9 MOV @R0,A INC R0 MOV A,R2 ADDC A,#0 MOV @R0,A INC R0 MOV A,R3 ADDC A,#0 MOV @R0,A RET CZZ:CLR 0FH JB 0CH,CZZ0 CLR C MOV A,4DH SUBB A,R1 MOV A,4EH SUBB A,R2 MOV A,4FH SUBB A,R3 JNC CZZ0 SETB 0FH CZZ0:RET QP:JB 15H,QP0 JB 0CH,QP2 QP0:CPL 15H JB 15H,QP1 ANL 27H,#0F7H RET QP1:ORL 27H,#08H MOV 6CH,46H MOV 6DH,47H QP2:RET KZ:MOV 43H,40H MOV 44H,41H MOV 45H,42H MOV A,36H SWAP A ACALL ZZZ RET ZZ:MOV A,36H ACALL ZZZ RET ZZZ:ANL A,#0FH JNZ ZZ0 MOV 43H,40H MOV 44H,41H MOV 45H,42H RET ZZ0:CJNE A,#1,ZZ1 MOV 7FH,#4 CALL ZZX RET ZZ1:CJNE A,#2,ZZ2 MOV 7FH,#8 CALL ZZX RET ZZ2:CJNE A,#3,ZZ3 MOV 7FH,#40 CALL ZZX RET ZZ3:CJNE A,#4,ZZ4 MOV 7FH,#100 CALL ZZX RET ZZ4:ACALL ZERO RET ZERO:PUSH 01H PUSH 02H PUSH 03H LCALL ADS MOV 43H,R1 MOV 44H,R2 MOV 45H,R3 POP 03H POP 02H POP 01H RET ZZZZ:LCALL ADS CLR 0CH CLR C MOV A,R1 SUBB A,40H MOV R1,A MOV A,R2 SUBB A,41H MOV R2,A MOV A,R3 SUBB A,42H MOV R3,A JNC ZZZ0 LCALL CPA SETB 0CH ZZZ0:MOV R4,3DH MOV R5,3EH MOV R6,3FH LCALL MU3 MOV R0,#70H MOV R7,#5 CLR C ZZZ1:MOV A,@R0 RLC A MOV @R0,A INC R0 DJNZ R7,ZZZ1 MOV 79H,3AH MOV 7AH,3BH MOV 7BH,3CH LCALL DV3 MOV R4,30H LCALL DV1 RET ZZX:CALL ZZZZ PUSH 01H PUSH 02H PUSH 03H MOV R1,32H MOV R2,33H MOV R3,34H MOV R4,30H LCALL DV1 MOV R4,7FH LCALL MU1 MOV R4,#100 LCALL DV1 POP 06H POP 05H POP 04H CLR C MOV A,R1 SUBB A,R4 MOV A,R2 SUBB A,R5 MOV A,R3 SUBB A,R6 JC ZZX1 CALL ZERO ZZX1:RET DTX:MOV 2EH,#15H LCALL TMR MOV R0,#56H MOV R1,#28H MOV R7,#3 DTX0:MOV A,@R0 ANL A,#0FH MOV @R1,A INC R1 MOV A,@R0 SWAP A ANL A,#0FH MOV @R1,A DEC R0 INC R1 DJNZ R7,DTX0 RET DATE:NOP PUSH 27H PUSH 2EH ANL 27H,#32H CALL DTX DATE1:LCALL KY CJNE A,#14,DATE1 POP 2EH POP 27H RET TIME:NOP PUSH 27H PUSH 2EH ANL 27H,#32H MOV 2DH,#10H MOV 2EH,#00H TM0:LCALL TMR MOV A,58H ANL A,#0FH MOV 28H,A MOV A,58H SWAP A ANL A,#0FH MOV 29H,A MOV 2AH,#12H MOV A,57H ANL A,#0FH MOV 2BH,A MOV A,57H SWAP A ANL A,#0FH MOV 2CH,A LCALL KY JZ TM0 CJNE A,#14,TM2 TM1:POP 2EH POP 27H RET TM2:CJNE A,#15,TM3 SJMP TM1 TM3:CJNE A,#16,TM0 TM4:LCALL KA JB 07H,TM6 JB 08H,TM5 XCH A,28H XCH A,29H XCH A,2BH XCH A,2CH SJMP TM4 TM5:MOV A,29H SWAP A ORL A,28H MOV 58H,A MOV A,2CH SWAP A ORL A,2BH MOV 57H,A LCALL TMW TM6:POP 2EH POP 27H RET DYSZ:NOP PUSH 27H PUSH 2EH ANL 27H,#32H MOV 2EH,#00H MOV 28H,49H MOV A,#10H MOV 29H,A MOV 2AH,A MOV 2BH,A MOV 2CH,A MOV 2DH,#18H DY1:LCALL KA JB 07H,DY3 JB 08H,DY2 MOV 28H,A SJMP DY1 DY2:MOV A,28H ANL A,#03H JZ DY3 MOV 49H,A MOV DPTR,#7F00H LCALL WRIT DY3:POP 2EH POP 27H RET ZX:PUSH 27H PUSH 2EH PUSH 4AH PUSH 4BH CLR A MOV 4AH,A MOV 4BH,A MOV 6AH,A MOV 6BH,A ANL 27H,#32H MOV 7FH,2EH MOV 2EH,#00H MOV 2DH,#10H MOV 2CH,#19H MOV 2BH,#0EH MOV 2AH,#0AH MOV 29H,#0DH MOV 28H,#10H ZX0:LCALL KY CJNE A,#1,ZX1 LCALL ZJZ SJMP ZX4 ZX1:CJNE A,#5,ZX2 LCALL ZPZ SJMP ZX4 ZX2:CJNE A,#2,ZX3 LCALL ZJG SJMP ZX4 ZX3:CJNE A,#15,ZX0 ZX4:POP 4BH POP 4AH POP 2EH POP 27H RET NO:MOV A,6AH ADD A,#1 DA A MOV 6AH,A MOV A,6BH ADDC A,#0 DA A MOV 6BH,A RET NOO:MOV A,4AH ADD A,#1 DA A MOV 4AH,A MOV A,4BH ADDC A,#0 DA A MOV 4BH,A RET NOXS:NOP MOV 2EH,#00H MOV 2DH,#16H MOV 2CH,#17H MOV 2BH,#10H MOV 2AH,6BH MOV A,6AH SWAP A ANL A,#0FH MOV 29H,A MOV A,6AH ANL A,#0FH MOV 28H,A RET RQXS:NOP MOV 2EH,#04H MOV 2DH,#0DH MOV 2CH,#10H MOV A,55H SWAP A ANL A,#0FH MOV 2BH,A MOV A,55H ANL A,#0FH MOV 2AH,A MOV A,56H SWAP A ANL A,#0FH MOV 29H,A MOV A,56H ANL A,#0FH MOV 28H,A RET SJXS:NOP MOV 2EH,#00H MOV 2DH,#1AH MOV A,57H SWAP A ANL A,#0FH MOV 2CH,A MOV A,57H ANL A,#0FH MOV 2BH,A MOV 2AH,#12H MOV A,58H SWAP A ANL A,#0FH MOV 29H,A MOV A,58H ANL A,#0FH MOV 28H,A RET CHXS:NOP MOV 2EH,#00H MOV 2DH,#0CH MOV 2CH,51H MOV A,52H SWAP A ANL A,#0FH MOV 2BH,A MOV A,52H ANL A,#0FH MOV 2AH,A MOV A,53H SWAP A ANL A,#0FH MOV 29H,A MOV A,53H ANL A,#0FH MOV 28H,A RET HHXS:NOP MOV 2EH,#00H MOV 2DH,#13H MOV 2CH,#10H MOV 2BH,#10H MOV 2AH,#10H MOV A,59H SWAP A ANL A,#0FH MOV 29H,A MOV A,59H ANL A,#0FH MOV 28H,A RET MZXS:NOP MOV 2EH,7FH MOV R1,5AH MOV R2,5BH MOV R3,#0 MOV R4,30H LCALL MU1 LCALL BCD24 LCALL SY RET PZXS:NOP MOV 2EH,7FH MOV R1,5CH MOV R2,5DH MOV R3,#0 MOV R4,30H LCALL MU1 LCALL BCD24 LCALL SY RET NZXS:NOP MOV 2EH,7FH MOV R1,5EH MOV R2,5FH MOV R3,#0 MOV R4,30H LCALL MU1 LCALL BCD24 LCALL SY RET CPZ:MOV DPL,6EH MOV DPH,6FH MOV R7,#5 CPZ0:CLR A LCALL WRIT INC DPTR DJNZ R7,CPZ0 RET ZJZ:CLR 17H MOV DPTR,#0000H JZ0:MOV 6EH,DPL MOV 6FH,DPH LCALL READ ANL A,#0F0H CJNE A,#0F0H,JZ10 SETB 17H LCALL RPP LCALL NO LCALL NOXS JZ1:LCALL KY CJNE A,#15,JZ2 SJMP JZ11 JZ2:CJNE A,#16,JZ1 ACALL CHXS JZ3:LCALL KY CJNE A,#15,JZ4 SJMP JZ11 JZ4:CJNE A,#12,JZ5 ACALL CPZ SJMP JZ9 JZ5:CJNE A,#16,JZ3 ACALL PZXS JZ6:LCALL KY CJNE A,#15,JZ7 SJMP JZ11 JZ7:CJNE A,#12,JZ8 ACALL CPZ SJMP JZ9 JZ8:CJNE A,#16,JZ6 JZ9:MOV DPL,6EH MOV DPH,6FH JZ10:LCALL LH5 MOV A,DPL CJNE A,#0FFH,JZ0 MOV A,DPH CJNE A,#05H,JZ0 JB 17H,JZ11 LCALL E12 JZ11:LCALL CLP RET ZPZ:CLR 17H MOV DPTR,#0600H ZPZ0:MOV 6EH,DPL MOV 6FH,DPH LCALL READ ANL A,#0F0H CJNE A,#0F0H,ZPZ10 SETB 17H LCALL RPP LCALL NO LCALL NOXS ZPZ1:LCALL KY CJNE A,#15,ZPZ2 SJMP ZPZ11 ZPZ2:CJNE A,#16,ZPZ1 ACALL CHXS ZPZ3:LCALL KY CJNE A,#15,ZPZ4 SJMP ZPZ11 ZPZ4:CJNE A,#12,ZPZ5 ACALL CPZ SJMP ZPZ9 ZPZ5:CJNE A,#16,ZPZ3 ACALL PZXS ZPZ6:LCALL KY CJNE A,#15,ZPZ7 SJMP ZPZ11 ZPZ7:CJNE A,#12,ZPZ8 ACALL CPZ SJMP ZPZ9 ZPZ8:CJNE A,#16,ZPZ6 ZPZ9:MOV DPL,6EH MOV DPH,6FH ZPZ10:LCALL LH5 MOV A,DPH CJNE A,#10H,ZPZ0 JB 17H,ZPZ11 LCALL E12 ZPZ11:LCALL CLP RET ZJG:NOP MOV 2DH,#19H MOV 2CH,#0DH MOV 2BH,#10H MOV 2AH,#10H MOV 29H,#10H MOV 28H,#1 JG0:LCALL KA JB 07H,JG4 JB 08H,JG1 MOV 28H,A SJMP JG0 JG1:MOV A,28H CJNE A,#1,JG2 ACALL ZCH RET JG2:CJNE A,#2,JG3 ACALL ZHH RET JG3:CJNE A,#3,JG4 LCALL ZRQ JG4:RET ZCX:JB 17H,ZCY LCALL E12 ZCY:RET ZCZ:AJMP ZC23 ZCH:CLR 17H LCALL CH JNB 07H,ZC0 RET ZC0:NOP MOV 51H,R1 MOV 52H,R2 MOV 53H,R3 MOV DPTR,#1000H ZC1:MOV 6EH,DPL MOV 6FH,DPH LCALL READ MOV R4,A ANL A,#0F0H CJNE A,#0F0H,ZCX LCALL NOO MOV A,R4 ANL A,#0FH CJNE A,51H,ZCZ INC DPTR LCALL READ CJNE A,52H,ZCZ INC DPTR LCALL READ CJNE A,53H,ZCZ SETB 17H MOV DPL,6EH MOV DPH,6FH LCALL CO LCALL NO LCALL NOXS ZC2:LCALL KY CJNE A,#15,ZC3 SJMP ZCX ZC3:CJNE A,#11,ZC4 LCALL TB AJMP ZC23 ZC4:CJNE A,#16,ZC2 LCALL RQXS ZC5:LCALL KY CJNE A,#15,ZC6 SJMP ZCX ZC6:CJNE A,#11,ZC7 LCALL TB AJMP ZC23 ZC7:CJNE A,#16,ZC5 LCALL SJXS ZC8:LCALL KY CJNE A,#15,ZC9 AJMP ZCX ZC9:CJNE A,#11,ZC10 LCALL TB AJMP ZC23 ZC10:CJNE A,#16,ZC8 ACALL HHXS ZC11:LCALL KY CJNE A,#15,ZC12 AJMP ZCX ZC12:CJNE A,#11,ZC13 LCALL TB AJMP ZC23 ZC13:CJNE A,#16,ZC11 ACALL MZXS ZC14:LCALL KY CJNE A,#15,ZC15 AJMP ZCX ZC15:CJNE A,#11,ZC16 LCALL TB SJMP ZC23 ZC16:CJNE A,#16,ZC14 ACALL PZXS ZC17:LCALL KY CJNE A,#15,ZC18 AJMP ZCX ZC18:CJNE A,#11,ZC19 LCALL TB SJMP ZC23 ZC19:CJNE A,#16,ZC17 ACALL NZXS ZC20:LCALL KY CJNE A,#15,ZC21 AJMP ZCX ZC21:CJNE A,#11,ZC22 LCALL TB SJMP ZC23 ZC22:CJNE A,#16,ZC20 ZC23:NOP MOV DPL,6EH MOV DPH,6FH LCALL LH15 MOV A,DPL CJNE A,#78H,ZC24 MOV A,DPH CJNE A,#79H,ZC24 AJMP ZCX ZC24:AJMP ZC1 ZHX:JB 17H,ZHY LCALL E12 ZHY:RET ZHZ:AJMP ZH23 ZHH:CLR 17H LCALL HH JNB 07H,ZH0 RET ZH0:NOP MOV DPTR,#1000H ZH1:MOV 6EH,DPL MOV 6FH,DPH LCALL READ ANL A,#0F0H CJNE A,#0F0H,ZHX LCALL NOO MOV A,DPL ADD A,#8 MOV DPL,A MOV A,DPH ADDC A,#0 MOV DPH,A LCALL READ CJNE A,59H,ZHZ SETB 17H MOV DPL,6EH MOV DPH,6FH LCALL CO LCALL NO LCALL NOXS ZH2:LCALL KY CJNE A,#15,ZH3 SJMP ZHX ZH3:CJNE A,#11,ZH4 LCALL TB AJMP ZH23 ZH4:CJNE A,#16,ZH2 LCALL RQXS ZH5:LCALL KY CJNE A,#15,ZH6 SJMP ZHX ZH6:CJNE A,#11,ZH7 LCALL TB AJMP ZH23 ZH7:CJNE A,#16,ZH5 LCALL SJXS ZH8:LCALL KY CJNE A,#15,ZH9 AJMP ZHX ZH9:CJNE A,#11,ZH10 LCALL TB AJMP ZH23 ZH10:CJNE A,#16,ZH8 ACALL CHXS ZH11:LCALL KY CJNE A,#15,ZH12 AJMP ZHX ZH12:CJNE A,#11,ZH13 LCALL TB AJMP ZH23 ZH13:CJNE A,#16,ZH11 ACALL MZXS ZH14:LCALL KY CJNE A,#15,ZH15 AJMP ZCX ZH15:CJNE A,#11,ZH16 LCALL TB SJMP ZH23 ZH16:CJNE A,#16,ZH14 ACALL PZXS ZH17:LCALL KY CJNE A,#15,ZH18 AJMP ZHX ZH18:CJNE A,#11,ZH19 LCALL TB SJMP ZH23 ZH19:CJNE A,#16,ZH17 ACALL NZXS ZH20:LCALL KY CJNE A,#15,ZH21 AJMP ZHX ZH21:CJNE A,#11,ZH22 LCALL TB SJMP ZH23 ZH22:CJNE A,#16,ZH20 ZH23:NOP MOV DPL,6EH MOV DPH,6FH LCALL LH15 MOV A,DPL CJNE A,#78H,ZH24 MOV A,DPH CJNE A,#79H,ZH24 AJMP ZHX ZH24:AJMP ZH1 RQ:LCALL TMR MOV 2EH,#04H MOV 2DH,#0DH MOV 2CH,#10H MOV A,55H SWAP A ANL A,#0FH MOV 2BH,A MOV A,55H ANL A,#0FH MOV 2AH,A MOV A,56H SWAP A ANL A,#0FH MOV 29H,A MOV A,56H ANL A,#0FH MOV 28H,A RQ0:LCALL KA JB 07H,RQ2 JB 08H,RQ1 LCALL X4 SJMP RQ0 RQ1:MOV A,29H SWAP A ORL A,28H MOV 56H,A MOV A,2BH SWAP A ORL A,2AH MOV 55H,A RQ2:RET ZQX:JB 17H,ZQY LCALL E12 ZQY:RET ZQZ:AJMP ZQ23 ZRQ:CLR 17H LCALL RQ JNB 07H,ZQ0 RET ZQ0:NOP MOV 51H,R1 MOV 52H,R2 MOV 53H,R3 MOV DPTR,#1000H ZQ1:MOV 6EH,DPL MOV 6FH,DPH LCALL READ ANL A,#0F0H CJNE A,#0F0H,ZQX LCALL NOO MOV A,DPL ADD A,#4 MOV DPL,A MOV A,DPH ADDC A,#0 MOV DPH,A LCALL READ CJNE A,55H,ZQZ INC DPTR LCALL READ CJNE A,56H,ZQZ SETB 17H MOV DPL,6EH MOV DPH,6FH LCALL CO LCALL NO LCALL NOXS ZQ2:LCALL KY CJNE A,#15,ZQ3 SJMP ZQX ZQ3:CJNE A,#11,ZQ4 LCALL TB AJMP ZQ23 ZQ4:CJNE A,#16,ZQ2 LCALL SJXS ZQ5:LCALL KY CJNE A,#15,ZQ6 SJMP ZQX ZQ6:CJNE A,#11,ZQ7 LCALL TB AJMP ZQ23 ZQ7:CJNE A,#16,ZQ5 LCALL CHXS ZQ8:LCALL KY CJNE A,#15,ZQ9 LJMP ZQX ZQ9:CJNE A,#11,ZQ10 LCALL TB AJMP ZQ23 ZQ10:CJNE A,#16,ZQ8 LCALL HHXS ZQ11:LCALL KY CJNE A,#15,ZQ12 LJMP ZQX ZQ12:CJNE A,#11,ZQ13 LCALL TB AJMP ZQ23 ZQ13:CJNE A,#16,ZQ11 LCALL MZXS ZQ14:LCALL KY CJNE A,#15,ZQ15 LJMP ZQX ZQ15:CJNE A,#11,ZQ16 LCALL TB AJMP ZQ23 ZQ16:CJNE A,#16,ZQ14 LCALL PZXS ZQ17:LCALL KY CJNE A,#15,ZQ18 LJMP ZQX ZQ18:CJNE A,#11,ZQ19 LCALL TB AJMP ZQ23 ZQ19:CJNE A,#16,ZQ17 LCALL NZXS ZQ20:LCALL KY CJNE A,#15,ZQ21 LJMP ZQX ZQ21:CJNE A,#11,ZQ22 LCALL TB AJMP ZQ23 ZQ22:CJNE A,#16,ZQ20 ZQ23:NOP MOV DPL,6EH MOV DPH,6FH LCALL LH15 MOV A,DPL CJNE A,#78H,ZQ24 MOV A,DPH CJNE A,#79H,ZQ24 LJMP ZQX ZQ24:AJMP ZQ1 EE:MOV 28H,#10H MOV 2BH,#19H MOV 2CH,#0EH MOV 2DH,#10H PUSH 07H MOV R7,#150 EE1:LCALL DL2 DJNZ R7,EE1 POP 07H RET E1:NOP MOV 2AH,#0 MOV 29H,#1 ACALL EE RET E2:NOP MOV 2AH,#0 MOV 29H,#2 ACALL EE RET E3:NOP MOV 2AH,#0 MOV 29H,#3 ACALL EE RET E4:NOP MOV 2AH,#0 MOV 29H,#4 ACALL EE RET E5:NOP MOV 2AH,#0 MOV 29H,#5 ACALL EE RET E6:NOP MOV 2AH,#0 MOV 29H,#6 ACALL EE RET E7:NOP MOV 2AH,#0 MOV 29H,#7 ACALL EE RET E8:NOP MOV 2AH,#0 MOV 29H,#8 ACALL EE RET E9:NOP MOV 2AH,#0 MOV 29H,#9 ACALL EE RET E10:NOP MOV 2AH,#1 MOV 29H,#0 ACALL EE RET E11:NOP MOV 2AH,#1 MOV 29H,#1 ACALL EE RET E12:NOP MOV 2AH,#1 MOV 29H,#2 ACALL EE RET E13:NOP MOV 2AH,#1 MOV 29H,#3 ACALL EE RET E14:NOP MOV 2AH,#1 MOV 29H,#4 ACALL EE RET CC:CLR 12H JB 0CH,CC0 JB 0DH,CC0 JNB 0EH,CC0 SETB 12H RET CC0:ACALL E8 RET CH:CLR A MOV 28H,A MOV 29H,A MOV 2AH,A MOV 2BH,A MOV 2CH,A MOV 2DH,#0CH CH0:LCALL KA JB 07H,CH2 JB 08H,CH1 LCALL X5 SJMP CH0 CH1:MOV A,29H SWAP A ORL A,28H MOV R3,A MOV A,2BH SWAP A ORL A,2AH MOV R2,A MOV A,2CH MOV R1,A CH2:RET HH:CLR A MOV 28H,A MOV 29H,A MOV A,#10H MOV 2AH,A MOV 2BH,A MOV 2CH,A MOV 2DH,#13H HH0:LCALL KA JB 07H,HH2 JB 08H,HH1 LCALL X2 SJMP HH0 HH1:MOV A,29H SWAP A ORL A,28H MOV 59H,A HH2:RET LH5:CLR C MOV A,DPL ADD A,#5 MOV DPL,A MOV A,DPH ADDC A,#0 MOV DPH,A RET LH15:CLR C MOV A,DPL ADD A,#15 MOV DPL,A MOV A,DPH ADDC A,#0 MOV DPH,A RET CL5:MOV R7,#5 CL50:CLR A LCALL WRIT INC DPTR DJNZ R7,CL50 RET CL15:MOV R0,#51H MOV R7,#15 CLR A CL150:MOV @R0,A INC R0 DJNZ R7,CL150 RET CN:MOV DPTR,#1000H CN0:LCALL READ ANL A,#0F0H CJNE A,#0F0H,CN1 LCALL LH15 MOV A,DPH CJNE A,#79H,CN0 MOV A,DPL CJNE A,#78H,CN0 LCALL E1 RET CN1:LCALL TMR MOV R0,#51H MOV R7,#15 CN2:MOV A,@R0 LCALL WRIT INC R0 INC DPTR DJNZ R7,CN2 ANL 51H,#0FH CLR C MOV A,4AH ADD A,#1 DA A MOV 4AH,A MOV A,4BH ADDC A,#0 DA A MOV 4BH,A MOV DPTR,#7F01H MOV A,4AH LCALL WRIT INC DPTR MOV A,4BH LCALL WRIT RET RP:LCALL READ MOV 5CH,A INC DPTR LCALL READ MOV 5DH,A RET RPP:LCALL READ ANL A,#0FH MOV 51H,A INC DPTR LCALL READ MOV 52H,A INC DPTR LCALL READ MOV 53H,A INC DPTR LCALL READ MOV 5CH,A INC DPTR LCALL READ MOV 5DH,A RET YCCC:NOP PUSH 27H PUSH 2EH ANL 27H,#32H MOV 2EH,#00H LCALL CC JNB 12H,YC1 LCALL CH JB 07H,YC1 JB 15H,YCX MOV A,R1 JNZ YC2 MOV A,R2 JNZ YC2 MOV A,R3 JNZ YC2 MOV 51H,R1 MOV 52H,R2 MOV 53H,R3 MOV A,46H MOV 5AH,A MOV 5EH,A MOV A,47H MOV 5BH,A MOV 5FH,A YC0:LCALL HH JB 07H,YC1 ORL 51H,#0F0H LCALL CN LCALL TA YC1:LCALL CL15 POP 2EH POP 27H RET YCX:LJMP YCY YC2:MOV DPTR,#0600H YC3:MOV 6EH,DPL MOV 6FH,DPH LCALL READ MOV R4,A ANL A,#0F0H CJNE A,#0F0H,YC4 MOV A,R4 ANL A,#0FH CJNE A,01H,YC4 INC DPTR LCALL READ CJNE A,02H,YC4 INC DPTR LCALL READ CJNE A,03H,YC4 MOV 51H,R1 MOV 52H,R2 MOV 53H,R3 INC DPTR YCXX:LCALL RP YC31:CLR C MOV A,46H MOV 5AH,A SUBB A,5CH MOV 5EH,A MOV A,47H MOV 5BH,A SUBB A,5DH MOV 5FH,A JNC YC0 LCALL E3 SJMP YC1 YC4:MOV DPL,6EH MOV DPH,6FH LCALL LH5 MOV A,DPH CJNE A,#10H,YC3 MOV DPTR,#1000H MOV 6EH,DPL MOV 6FH,DPH YC6:LCALL READ MOV R4,A ANL A,#0F0H CJNE A,#0F0H,YC8 MOV A,R4 ANL A,#0FH CJNE A,01H,YC7 INC DPTR LCALL READ CJNE A,02H,YC7 INC DPTR LCALL READ CJNE A,03H,YC7 MOV 51H,R1 MOV 52H,R2 MOV 53H,R3 MOV A,DPL ADD A,#9 MOV DPL,A MOV A,DPH ADDC A,#0 MOV DPH,A SJMP YCXX YC7:MOV A,6EH ADD A,#15 MOV 6EH,A MOV DPL,A MOV A,6FH ADDC A,#0 MOV 6FH,A MOV DPH,A SJMP YC6 YC8:LCALL E2 LJMP YC1 YCY:MOV 51H,R1 MOV 52H,R2 MOV 53H,R3 YCY1:MOV 5CH,6CH MOV 5DH,6DH YCY2:CLR C MOV A,46H MOV 5AH,A SUBB A,5CH MOV 5EH,A MOV A,47H MOV 5BH,A SUBB A,5DH MOV 5FH,A LCALL HH JB 07H,YC5 ORL 51H,#0F0H LCALL CN LCALL TA YC5:LJMP YC1 CLP:CLR A MOV 51H,A MOV 52H,A MOV 53H,A MOV 5CH,A MOV 5DH,A RET ZP:JNB 0CH,ZP0 LCALL E8 RET ZP0:JB 0EH,ZP1 LCALL YZPZ RET ZP1:LCALL SZPZ RET SZPZ:NOP PUSH 27H PUSH 2EH ANL 27H,#32H MOV 7FH,2EH MOV 2EH,#00H LCALL CH JB 07H,SZ0 MOV A,R1 JNZ SZ1 MOV A,R2 JNZ SZ1 MOV A,R3 JNZ SZ1 LCALL E4 SZ0:LCALL CLP POP 2EH POP 27H RET SZ1:MOV 51H,R1 MOV 52H,R2 MOV 53H,R3 LCALL HH JB 07H,SZ0 MOV 2EH,7FH CLR 0CH CLR A MOV 70H,A MOV 71H,A MOV 72H,A SZ2:LCALL SY LCALL KA JB 07H,SZ0 JB 08H,SZ3 LCALL BTCA SJMP SZ2 SZ3:LCALL BTCB MOV R4,30H LCALL DV1 MOV 5CH,R1 MOV 5DH,R2 CLR C MOV A,46H MOV 5AH,A SUBB A,R1 MOV 5EH,A MOV A,47H MOV 5BH,A SUBB A,R2 MOV 5FH,A JNC SZ4 LCALL E3 SJMP SZ0 SZ4:ORL 51H,#0F0H LCALL CN LCALL TA SJMP SZ0 YZPZ:NOP PUSH 27H PUSH 2EH ANL 27H,#32H MOV 7FH,2EH YZ00:MOV 2EH,#00H LCALL CH MOV 51H,R1 MOV 52H,R2 MOV 53H,R3 JB 07H,YZ0 MOV A,R1 JNZ YZ1 MOV A,R2 JNZ YZ1 MOV A,R3 JNZ YZ1 LCALL E4 YZ0:LCALL CLP POP 2EH POP 27H RET YZ1:MOV DPTR,#0600H YZ2:MOV 6EH,DPL MOV 6FH,DPH LCALL READ MOV R4,A ANL A,#0F0H CJNE A,#0F0H,YZ3 MOV A,R4 ANL A,#0FH CJNE A,01H,YZ3 INC DPTR LCALL READ CJNE A,02H,YZ3 INC DPTR LCALL READ CJNE A,03H,YZ3 INC DPTR LCALL RP SJMP YZ5 YZ3:MOV DPL,6EH MOV DPH,6FH LCALL LH5 MOV A,DPH CJNE A,#10H,YZ2 MOV DPTR,#0600H YZ4:MOV 6EH,DPL MOV 6FH,DPH LCALL READ ANL A,#0F0H CJNE A,#0F0H,YZ5 MOV DPL,6EH MOV DPH,6FH LCALL LH5 MOV A,DPH CJNE A,#10H,YZ4 LCALL E5 YZ40:SJMP YZ0 YZ5:MOV 2EH,7FH MOV R1,5CH MOV R2,5DH MOV R3,#0 MOV R4,30H LCALL MU1 LCALL BCD24 CLR 0CH YZ6:LCALL SY LCALL KA JB 07H,YZ40 JB 08H,YZ7 LCALL BTCA SJMP YZ6 YZ7:LCALL BTCB MOV R4,30H LCALL DV1 MOV A,R1 JNZ YZ8 MOV A,R2 JNZ YZ8 LCALL E6 AJMP YZ0 YZ8:ACALL CZ AJMP YZ00 CZ:MOV DPL,6EH MOV DPH,6FH MOV A,51H ORL A,#0F0H LCALL WRIT INC DPTR MOV A,52H LCALL WRIT INC DPTR MOV A,53H LCALL WRIT INC DPTR MOV A,R1 LCALL WRIT INC DPTR MOV A,R2 LCALL WRIT LCALL CLP RET ECCC:NOP PUSH 27H PUSH 2EH ANL 27H,#32H MOV 2EH,#00H LCALL CC JNB 12H,EC0 CLR 12H LCALL CH JB 07H,EC0 MOV A,R1 JNZ EC1 MOV A,R2 JNZ EC1 MOV A,R3 JNZ EC1 LCALL E7 EC0:LCALL CL15 POP 2EH POP 27H RET EC1:MOV 51H,R1 MOV 52H,R2 MOV 53H,R3 MOV DPTR,#0000H EC2:MOV 6EH,DPL MOV 6FH,DPH LCALL READ MOV R4,A ANL A,#0F0H CJNE A,#0F0H,EC3 MOV A,R4 ANL A,#0FH CJNE A,01H,EC3 INC DPTR LCALL READ CJNE A,02H,EC3 INC DPTR LCALL READ CJNE A,03H,EC3 SJMP EC6 EC3:MOV DPL,6EH MOV DPH,6FH LCALL LH5 MOV A,DPL CJNE A,#0FFH,EC2 MOV A,DPH CJNE A,#05H,EC2 MOV DPTR,#0000H EC4:MOV 6EH,DPL MOV 6FH,DPH LCALL READ ANL A,#0F0H CJNE A,#0F0H,EC5 LCALL LH5 MOV A,DPL CJNE A,#0FFH,EC4 MOV A,DPH CJNE A,#05H,EC4 LCALL E9 SJMP EC0 EC5:MOV R1,46H MOV R2,47H ACALL CZ SJMP EC0 EC6:LCALL HH JB 07H,EC8 MOV DPL,6EH MOV DPH,6FH CLR A LCALL WRIT INC DPTR CLR A LCALL WRIT INC DPTR CLR A LCALL WRIT INC DPTR LCALL READ MOV R1,A CLR A LCALL WRIT INC DPTR LCALL READ MOV R2,A CLR A LCALL WRIT MOV 5CH,R1 MOV 5DH,R2 CLR C MOV A,46H MOV 5AH,A SUBB A,R1 MOV 5EH,A MOV A,47H MOV 5BH,A SUBB A,R2 MOV 5FH,A JNC EC7 MOV 5CH,46H MOV 5DH,47H CLR C MOV A,R1 MOV 5AH,A SUBB
输入10个数,存入变量BUF中,如何将每个单元的数据以ASCII码形式显示出来?
从键盘输入10个数,存入变量BUF中,将每个单元的数据以ASCII码形式显示出来:例如,某单元数据为18(12H),则显示31H(数字1的ASCII码)、32H(数字2的ASCII码)。要求: (1)输入10个数用子程序实现 (2)转换功能(二位16进制数转换为ASCII码)用子程序实现 (3)显示功能(显示各个ASCII码)用子程序实现 (4)主程序循环调用子程序实现转换和显示 ``` DATA SEGMENT BUF DB 10 DUP(?) DATA ENDS CODE SEGMENT ASSUME CS:CODE,DS:DATA START: MOV AX,DATA MOV DS,AX LEA SI,BUF CALL INPUT MOV CX,10 SSS:CALL TRANS CALL OUTPUT INC SI LOOP SSS MOV AH,4CH INT 21H INPUT PROC MOV CX,10 L0: MOV AH,01H INT 21H CMP AL,'0' JB L0 CMP AL,'9' JA L1 SUB AL,30H MOV [SI],AL JMP L2 L1: CMP AL,'A' JB L0 CMP AL,'F' JA L0 SUB AL,37H MOV [SI],AL L2: INC SI LOOP L0 RET INPUT ENDP TRANS PROC PUSH CX LEA SI,BUF MOV AL,[SI] MOV BL,AL MOV CL,4 SHR BL,CL CMP BL,9 JBE L3 ADD BL,7H L3: ADD BL,30H AND AL,0FH CMP AL,9 JBE L4 ADD AL,7H L4: ADD AL,30H POP CX RET TRANS ENDP OUTPUT PROC PUSH CX MOV CL,4 MOV DL,BL MOV BH,BL SHR DL,CL CMP DL,9 JBE L5 ADD DL,7H L5: ADD DL,30H MOV AH,02H INT 21H AND BH,0FH CMP BH,9 JBE L6 ADD BH,7H L6: ADD BH,30H MOV DL,BH MOV AH,02H INT 21H MOV CH,AL MOV DH,AL SHR CH,CL CMP CH,9 JBE L7 ADD CH,7H L7: ADD CH,30H MOV DL,CH MOV AH,02H INT 21H AND DH,0FH CMP DH,9 JBE L8 ADD DH,7H L8: ADD DH,30H MOV DL,DH MOV AH,02H INT 21H POP CX RET OUTPUT ENDP CODE ENDS END START ``` 为什么无论输入哪十个数,都输出3030303030303030303030303030303030303030? 如何修改? ![图片说明](https://img-ask.csdn.net/upload/201911/27/1574784307_821127.png)
惩罚函数内点法算法索引超出矩阵维度为什么呀 求求求急急急!!!
这个代码我运行后总显示索引超出矩阵维度是为什么呀 求求求急急急!!! function f=fun(x,r) f=x(1,1)^2+x(2,2)^2-r*log(x(1,1)-1); function f=fh(x0,h,s,r)%步长的函数 h为步长 s为方向 r为惩罚因子 x1=x0+h*s f=fun(x1,r) function h=fsearchh(x0,r,s)%利用进退法确定高低高区间,利用黄金分割法进行求解 h1=0;%步长的初始点 st=0.001;%步长的步长 h2=h1+st; f1=fh(x0,h1,s,r); f2=fh(x0,h2,s,r); if f1>f2 h3=h2+st; f3=fh(x0,h3,s,r); while f2>f3 h1=h2; h2=h3; h3=h3+st; f2=f3; f3=fh(x0,h3,s,r); end else st=-st; v=h1; h1=h2; h2=v; v=f1; f1=f2; f2=v; h3=fh(x0,h3,s,r); while f2>f3 h1=h2; h2=h3;h3=h3+st; f2=f3; f3=fh(x0,h3,s,r); end end%得到高低高区间 a=min(h1,h3); b=max(h1,h3); %利用黄金分割点法进行求解 h1=1+0.382*(b-a); h2=1+0.618*(b-a); f1=fh(x0,h1,s,r); f2=fh(x0,h2,s,r); while abs(a-b)>0.0001 if f1>f2 a=h1;h1=h2; f1=f2; h2=a+0.618*(b-a); f2=fh(x0,f2,s,r); else b=h2; h2=h1; f2=f1; h1=a+0.382*(b-a); f1=fh(x0,h1,s,r); end end h=0.5*(a+b) function f=fsearchx(x0,r,epson) x00=x0; m=length(x0); s=zeros(m,1); for i=1:m s(i)=1; h=fsearchh(x0,r,s); x1=x0+h*s; s(i)=0; x0=x1; end while norm(x1-x00)>epson x00=x1; for i=1:m s(i)=1; h=fsearchh(x0,r,s); x1=x0+h*s; s(i)=0; x0=x1; end end f=x1; clear clc x0=[2;2];%给定初始点 r=1; c=0.1; epson=0.001; x1=fsearchx(x0,0.1,epson); while norm(x0-x1)>epson x0=x1; r=r*c x1=fsearchx(x0,r,epson) end disp x1
求大神帮忙,为什么程序中有些if不执行
#include<stdio.h> main() { char sex,sports,diet; float fah,moh,mh,fh; int flag=1; printf("Please input your sex(M or F),faHeight(cm),moHeight(cm):\n"); scanf("%c,%f,%f",&sex,&fah,&moh); getchar(); if(sex=='M') { printf("If you like sports,please input Y,otherwise input N:\n"); scanf("%c",&sports); getchar(); mh=(fah+moh)*0.54; if(sports=='Y') { mh=mh*1.02; printf("Your height:%fcm\n",mh); flag=0; } printf("If you have a good diet,please input Y,otherwise input N:\n"); scanf("%c",&diet); getchar(); if(diet=='Y') { mh=mh*1.035; printf("Your height:%fcm\n",mh); flag=0; } if(flag!=0) { mh=mh*1.055; printf("Your height:%fcm\n",mh); } else printf("Your height:%fcm\n",mh); } else if(sex=='F') { printf("If you like sports,please input Y,otherwise input N:\n"); scanf("%c",&sports); getchar(); fh=(fah*0.923+moh)/2; if(sports=='Y') { fh=fh*1.02; printf("Your height:%fcm\n",fh); flag=0; } printf("If you have a good diet,please input Y,otherwise input N:\n"); scanf(" %c",&diet); getchar(); if(diet=='Y') { fh=fh*1.035; printf("Your height:%fcm\n",fh); flag=0; } if(flag!=0) { fh=fh*1.055; printf("Your height:%fcm\n",fh); } else printf("Your height:%fcm\n",fh); } } !](https://img-ask.csdn.net/upload/201711/24/1511453545_143330.png) 就出现图片中的情况
maven 项目中修改项目的包名后重新启动报错
原来项目运行时正常的,后来把com.fh.controller.information.picture.PictureController 和com.fh.service.information.picture.PictureService修改为com.fh.controller.information.PictureController 和com.fh.service.information.PictureService后出错 启动项目报错如下错误 信息: Initializing Spring root WebApplicationContext 2015-06-06 12:04:32 -0 [localhost-startStop-1] INFO - Root WebApplicationContext: initialization started 2015-06-06 12:04:32 -184 [localhost-startStop-1] INFO - Refreshing Root WebApplicationContext: startup date [Sat Jun 06 12:04:32 CST 2015]; root of context hierarchy 2015-06-06 12:04:33 -248 [localhost-startStop-1] INFO - Loading XML bean definitions from class path resource [spring/ApplicationContext.xml] 2015-06-06 12:04:33 -483 [localhost-startStop-1] ERROR - Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring/ApplicationContext.xml]; nested exception is org.springframework.context.annotation.ConflictingBeanDefinitionException: Annotation-specified bean name 'picturesService' for bean class [com.fh.service.information.PicturesService] conflicts with existing, non-compatible bean definition of same name and class [com.fh.service.information.pictures.PicturesService]
微机原理用74LS273扩展I/O口实验代码修改
利用实验平台上的锁进插座扩展一片74LS273作为输出口,控制八个LED灯。改为从右往左两个两个亮 OUTBIT equ 0e101h ; 位控制口 CLK164 equ 0e102h ; 段控制口(接164时钟位) DAT164 equ 0e102h ; 段控制口(接164数据位) IN_KEY equ 0e103h ; 键盘读入口 CS245 equ 0A000h data segment LEDBuf db 6 dup(?) ; 显示缓冲 Num db 1 dup(2) ; 显示的数据 DelayT db 1 dup(2) LEDMAP: ; 八段管显示码 db 3fh, 06h, 5bh, 4fh, 66h, 6dh, 7dh, 07h db 7fh, 6fh, 77h, 7ch, 39h, 5eh, 79h, 71h data ends code segment assume cs:code, ds:data Delay proc near push ax ; 延时子程序 push cx mov al, 0 mov cx,ax loop $ pop cx pop ax ret Delay endp DisplayLED proc near mov bx, offset LEDBuf mov cl, 6 ; 共6个八段管 mov ah, 00100000b ; 从左边开始显示 DLoop: mov dx, OUTBIT mov al, 0 out dx,al ; 关所有八段管 mov al, [bx] mov ch, 8 ; 送164 DLP: push ax mov ah, 0 test al, 80h jz GN1 mov ah, 1 GN1: mov dx, DAT164 ; 输出数据位 mov al, ah and al,0fdh out dx, al mov dx, CLK164 ; 送出时钟脉冲 mov al, 1 or al,02h out dx, al mov al, 0 and al,0fdh out dx, al pop ax shl al, 1 dec ch jnz DLP mov dx, OUTBIT mov al, ah out dx, al ; 显示一位八段管 push ax mov ah, 1 call Delay pop ax shr ah, 1 inc bx dec cl jnz DLoop mov dx, OUTBIT mov al, 0 out dx,al ; 关所有八段管 ret DisplayLED endp Start proc near mov ax, data mov ds, ax mov dx,0e100h mov al,03h out dx,al mov LEDBuf, 0ffh ; 显示 8.8.8.8. mov LEDBuf+1, 0ffh mov LEDBuf+2, 0ffh mov LEDBuf+3, 0ffh mov LEDBuf+4, 0 mov LEDBuf+5, 0 MLoop: call DisplayLED ; 显示 mov dx, CS245 ; 读入开关值 in al, dx mov cl ,al and al, 0fh mov ah, 0 mov bx, offset LEDMAP add bx, ax mov al, [bx] mov LEDBuf+5, al mov al,cl shr al,2 and al, 0fh mov ah, 0 mov bx, offset LEDMAP add bx, ax mov al, [bx] mov LEDBuf+4, al jmp MLoop Start endp code ends end start
有关list的问题,将list中的数据全部插入另一张表中
public List getAllLeft() { List left=this.getHibernateTemplate().find("from Left"); return left; } 使用的是ssh框架,list里有许多从Left表里查到的数据,我想讲这些数据放入另一张表right中,如何在action中编写呀,left表里属性有fh,xm right表中有fh,xm,jzmj,symj,只需要将fh,xm放在right表中的fh,xm 即可
IEEE 754标准下, 浮点数1的机器码表示
用反汇编得到了浮点数1的机器码,根据IEEE 754标准推断,却发现匹配不上。 具体如下: float f = 1.0f; 这句话反汇编后,汇编代码如下: mov $0x3f800000,%eax mov %eax,-0x4(%ebp) 这里的0x3f800000应该是浮点数的1的机器码表示,该机器码表示应当符合IEEE 754标准。 标准如下: 对于短实数,即32位实数,格式如下: 符号位 阶码 尾数 1 8 23 则可知,0x3f80000(二进制表示为: 0011 1111 1000 0...0)的 符号位: 0(表示正数) 阶码: 01111111 尾数: 全0 按照IEEE 754标准,尾数中最高位的1会被省略,则可知尾数为1.0,恰好是浮点数1的值。而符号位也是正确的,现在需要看的就是阶码了。 最终的结果应为:尾数 * (2的阶码次方),那么阶码的值应该为0. 阶码是用移码表示的,并且对于短实数,标准规定,其阶码值还有加上0x7FH. 0的移码是10000000, 再加上0x7FH是全1,但是上述的阶码不是全1.为什么? 如果逆向推倒, 阶码01111111 - 0x7FH 得到的移码为:00000000 则对应的补码为: 10000000, 这是表示 -128的补码。 没有得到期望中的阶码。 为什么?
本人新手,后台采用ssm框架,部署项目后报错,希望哪位大神能够解决一下
**导致报错的几种操作:** 1、先将项目部署到tomcat中,然后启动tomcat, 结果一如既往的报错。 2、先启动tomcat,再部署项目,期间也会报错,但最后还是可以进行正常访问。 但如果修改了后台的代码,再次启动时,又会出现异常。 本人新手,因为不知道怎么查看异常的核心,所以将这异常信息全部复制过来了,还望 能够体谅下。也非常希望哪位兄台能够看下我这是什么问题。在网上搜了下,有说是cglib动态代理的问题,可是尴尬的是自己又不懂什么是动态代理【笑哭】,这个项目是用fh admin。然后自己部署项目就出现如下bug,望大神们能交小弟解决下 2017-11-30 14:30:01 -4908 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.isProxyTargetClass() 2017-11-30 14:30:01 -4908 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.setTargetSource(org.springframework.aop.TargetSource) 2017-11-30 14:30:01 -4908 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.setPreFiltered(boolean) 2017-11-30 14:30:01 -4908 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.isExposeProxy() 2017-11-30 14:30:01 -4908 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.setExposeProxy(boolean) 2017-11-30 14:30:01 -4909 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract org.springframework.aop.Advisor[] org.springframework.aop.framework.Advised.getAdvisors() 2017-11-30 14:30:01 -4909 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.addAdvisor(int,org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException 2017-11-30 14:30:01 -4909 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.addAdvisor(org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException 2017-11-30 14:30:01 -4910 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.removeAdvisor(int) throws org.springframework.aop.framework.AopConfigException 2017-11-30 14:30:01 -4910 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.removeAdvisor(org.springframework.aop.Advisor) 2017-11-30 14:30:01 -4910 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.isInterfaceProxied(java.lang.Class) 2017-11-30 14:30:01 -4910 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract java.lang.Class[] org.springframework.aop.framework.Advised.getProxiedInterfaces() 2017-11-30 14:30:01 -4911 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract java.lang.String org.springframework.aop.framework.Advised.toProxyConfigString() 2017-11-30 14:30:01 -4911 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.replaceAdvisor(org.springframework.aop.Advisor,org.springframework.aop.Advisor) throws org.springframework.aop.framework.AopConfigException 2017-11-30 14:30:01 -4911 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.isPreFiltered() 2017-11-30 14:30:01 -4911 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract boolean org.springframework.aop.framework.Advised.removeAdvice(org.aopalliance.aop.Advice) 2017-11-30 14:30:01 -4912 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.addAdvice(org.aopalliance.aop.Advice) throws org.springframework.aop.framework.AopConfigException 2017-11-30 14:30:01 -4912 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract void org.springframework.aop.framework.Advised.addAdvice(int,org.aopalliance.aop.Advice) throws org.springframework.aop.framework.AopConfigException 2017-11-30 14:30:01 -4912 [localhost-startStop-1] DEBUG - Method is declared on Advised interface: public abstract java.lang.Class org.springframework.aop.TargetClassAware.getTargetClass() 2017-11-30 14:30:01 -4951 [localhost-startStop-1] DEBUG - Creating implicit proxy for bean 'userService' with 0 common interceptors and 2 specific interceptors 2017-11-30 14:30:01 -4952 [localhost-startStop-1] DEBUG - Creating CGLIB2 proxy: target source is SingletonTargetSource for target object [com.fh.service.system.user.impl.UserService@b3faa7] 2017-11-30 14:30:01 -4953 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public void com.fh.service.system.user.impl.UserService.deleteAllU(java.lang.String[]) throws java.lang.Exception 2017-11-30 14:30:01 -4953 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public void com.fh.service.system.user.impl.UserService.deleteU(com.fh.util.PageData) throws java.lang.Exception 2017-11-30 14:30:01 -4954 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public java.util.List com.fh.service.system.user.impl.UserService.listAllUser(com.fh.util.PageData) throws java.lang.Exception 2017-11-30 14:30:01 -4954 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public com.fh.util.PageData com.fh.service.system.user.impl.UserService.findById(com.fh.util.PageData) throws java.lang.Exception 2017-11-30 14:30:01 -4954 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public void com.fh.service.system.user.impl.UserService.saveU(com.fh.util.PageData) throws java.lang.Exception 2017-11-30 14:30:01 -4955 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public void com.fh.service.system.user.impl.UserService.editU(com.fh.util.PageData) throws java.lang.Exception 2017-11-30 14:30:01 -4955 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public com.fh.util.PageData com.fh.service.system.user.impl.UserService.findByUE(com.fh.util.PageData) throws java.lang.Exception 2017-11-30 14:30:01 -4955 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public com.fh.util.PageData com.fh.service.system.user.impl.UserService.getUserCount(java.lang.String) throws java.lang.Exception 2017-11-30 14:30:01 -4956 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public com.fh.util.PageData com.fh.service.system.user.impl.UserService.findByUN(com.fh.util.PageData) throws java.lang.Exception 2017-11-30 14:30:01 -4956 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public void com.fh.service.system.user.impl.UserService.saveIP(com.fh.util.PageData) throws java.lang.Exception 2017-11-30 14:30:01 -4956 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public java.util.List com.fh.service.system.user.impl.UserService.listUsers(com.fh.entity.Page) throws java.lang.Exception 2017-11-30 14:30:01 -4957 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public com.fh.util.PageData com.fh.service.system.user.impl.UserService.findByUsername(com.fh.util.PageData) throws java.lang.Exception 2017-11-30 14:30:01 -4958 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public com.fh.util.PageData com.fh.service.system.user.impl.UserService.getUserByNameAndPwd(com.fh.util.PageData) throws java.lang.Exception 2017-11-30 14:30:01 -4959 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public java.util.List com.fh.service.system.user.impl.UserService.listUsersBystaff(com.fh.entity.Page) throws java.lang.Exception 2017-11-30 14:30:01 -4960 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public com.fh.entity.system.User com.fh.service.system.user.impl.UserService.getUserAndRoleById(java.lang.String) throws java.lang.Exception 2017-11-30 14:30:01 -4961 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public void com.fh.service.system.user.impl.UserService.updateLastLogin(com.fh.util.PageData) throws java.lang.Exception 2017-11-30 14:30:01 -4962 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: public java.util.List com.fh.service.system.user.impl.UserService.listAllUserByRoldId(com.fh.util.PageData) throws java.lang.Exception 2017-11-30 14:30:01 -4963 [localhost-startStop-1] DEBUG - Found finalize() method - using NO_OVERRIDE 2017-11-30 14:30:01 -4963 [localhost-startStop-1] DEBUG - Unable to apply any optimisations to advised method: protected native java.lang.Object java.lang.Object.clone() throws java.lang.CloneNotSupportedException 2017-11-30 14:30:01 -4964 [localhost-startStop-1] DEBUG - Found 'hashCode' method: public native int java.lang.Object.hashCode() 2017-11-30 14:30:01 -4964 [localhost-startStop-1] DEBUG - Found 'equals' method: public boolean java.lang.Object.equals(java.lang.Object)veAdvisor(int) throws org.s
8086汇编语言程序设计,关于CMP指令比较数字是否存在的问题
如何在数码管中显示0-FFFF中带0的数,一直循环,每秒状态切换。我目前的思路就是用cmp指令比较,要是没有0,就右移,循环四次,四次之后没有0的话,就跳到下一个数字继续循环比较。但是汇编的基础太差,求各位大神帮忙或者提出更好的方法。以下是我们现在存有的汇编程序 DATA SEGMENT ; DB 0 1 2 3 4 5 6 7 8 9 A B C D E F LEDCODE DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH,77H,7CH,39H,5EH,79H,71H DATA ENDS CODE SEGMENT ASSUME CS:CODE, DS:DATA START: MOV AX, DATA MOV DS, AX MOV DX,0206H MOV AL,80H OUT DX,AL LEA BX,LEDCODE XOR SI,SI AGAIN: MOV DI,1 LP2: MOV AX,DI ; PORT B MOV DX,0202H OUT DX,AL MOV AX,SI AND AX,0FH XLAT MOV DX,0200H ; PORT A OUT DX,AL PUSH CX MOV CX,1000 LOOP $ POP CX MOV CL,4 ROR SI,CL ;SI RIGHT SHIFT 4 ROL DI,1 ; PBx CMP DI,16 JNE LP2 INC SI JMP AGAIN CODE ENDS END START
该程序运行时刀输入序号的时候输入不进去为什么?有大神知道吗
#include<stdio.h> #include<stdlib.h> typedef struct splist { double data; splist *next; } splist; /*单链表创建的思路 1.声明一个指针p和计数器变量i 2.初始化一个空链表L; 3.让L的头结点指针指向NULL, 4.循环; 生成一个新节点赋值给p 将p插入头结点和前一新节点之间 */ void CJ(splist *L,int n) { splist *p; splist *x=L; int i; x=(splist*)malloc(sizeof(splist)); x->next=NULL; double c; scanf("%lf",&c); printf("请开始建表"); for(i=0;i<n;i++) { p=(splist*)malloc(sizeof(splist)); p->data=c; p->next=x->next; x->next=p; } } double FH(splist*L,int i) { double *e; int j; splist*p; splist *x=L; p=x->next; j=1; while(p&&j<i) { p=p->next; j++; } if(!p||j>i) return 0; *e=p->data; return *e; } int main() { splist *L; double c; int m; int x; printf("请输入表的长度"); scanf("%d",&m); CJ(L,m); printf("请输入要返回的序号");//运行时无法输入序号 scanf("%d",&x); c=FH(L,x); printf("%lf",c); return 0; }
回溯 搜索 数独 pascal 求高手赐教
我的代码 请问那里有问题 答案总是错 谢谢 靶形数独 (sudo.pas/c/cpp) 【问题描述】 小城和小华都是热爱数学的好学生,最近,他们不约而同地迷上了数独游戏,好胜的他们想用数独来一比高低。但普通的数独对他们来说都过于简单了,于是他们向Z博士请教,Z博士拿出了他最近发明的“靶形数独”,作为这两个孩子比试的题目。 靶形数独的方格同普通数独一样,在9格宽×9格高的大九宫格中有9个3格宽×3格高的小九宫格(用粗黑色线隔开的)。在这个大九宫格中,有一些数字是已知的,根据这些数字,利用逻辑推理,在其他的空格上填入1到9的数字。每个数字在每个小九宫格内不能重复出现,每个数字在每行、每列也不能重复出现。但靶形数独有一点和普通数独不同,即每一个方格都有一个分值,而且如同一个靶子一样,离中心越近则分值越高。(如图) (6,6,6,6,6 ,6,6,6,6) (6,7,7,7,7 ,7,7,7,6) (6,7,8,8,8 ,8,8,7,6) (6,7,8,9,9 ,9,8,7,6) (6,7,8,9,10,9,8,7,6) (6,7,8,9,9 ,9,8,7,6) (6,7,8,8,8 ,8,8,7,6) (6,7,7,7,7 ,7,7,7,6) (6,6,6,6,6 ,6,6,6,6) 上图具体的分值分布是:最里面一格(黄色区域)为10分,黄色区域外面的一圈(红色区域)每个格子为9分,再外面一圈(蓝色区域)每个格子为8分,蓝色区域外面一圈(棕色区域)每个格子为7分,最外面一圈(白色区域)每个格子为6分,如上图所示。比赛的要求是:每个人必须完成一个给定的数独(每个给定数独有可能有不同的填法),而且要争取更高的总分数。而这个总分数即每个方格上的分值和完成这个数独时填在相应格上的数字的乘积的总和。如图,在以下这个已经填完数字的靶形数独游戏中,总分为2829。游戏规定,将以总分数的高低决出胜负。 7 5 4 9 3 8 2 6 1 1 2 8 6 4 5 9 3 7 6 3 9 2 1 7 4 8 5 8 6 5 4 2 9 1 7 3 9 7 2 3 5 1 6 4 8 4 1 3 8 7 6 5 2 9 5 4 7 1 8 2 3 9 6 2 9 1 7 6 3 8 5 4 3 8 6 5 9 4 7 1 2 由于求胜心切,小城找到了善于编程的你,让你帮他求出,对于给定的靶形数独,能够得到的最高分数。 【输入】 输入文件名为sudo.in。 一共9行,每行9个整数(每个数都在0—9的范围内),表示一个尚未填满的数独方格,未填满的空格用“0”表示。每两个数字之间用一个空格隔开。 【输出】 输出文件sudo.out共1行。 输出可以得到的靶形数独的最高分数。如果这个数独无解,则输出整数-1。 【输入输出样例1】 sudo.in sudo.out 7 0 0 9 0 0 0 0 1 1 0 0 0 0 5 9 0 0 0 0 0 2 0 0 0 8 0 0 0 5 0 2 0 0 0 3 0 0 0 0 0 0 6 4 8 4 1 3 0 0 0 0 0 0 0 0 7 0 0 2 0 9 0 2 0 1 0 6 0 8 0 4 0 8 0 5 0 4 0 1 2 2829 【输入输出样例2】 sudoku.in sudoku.out 0 0 0 7 0 2 4 5 3 9 0 0 0 0 8 0 0 0 7 4 0 0 0 5 0 1 0 1 9 5 0 8 0 0 0 0 0 7 0 0 0 0 0 2 5 0 3 0 5 7 9 1 0 8 0 0 0 6 0 1 0 0 0 0 6 0 9 0 0 0 0 1 0 0 0 0 0 0 0 0 6 2852 【数据范围】 40%的数据,数独中非0数的个数不少于30。 80%的数据,数独中非0数的个数不少于26。 100%的数据,数独中非0数的个数不少于24。 每个测试点时限:2秒 内存上限:128M program shudu; type lin=set of 0..9; type pos= record x,y:longint; end; const gong:array[1..9,1..9]of longint= ((1,1,1,2,2,2,3,3,3), (1,1,1,2,2,2,3,3,3), (1,1,1,2,2,2,3,3,3), (4,4,4,5,5,5,6,6,6), (4,4,4,5,5,5,6,6,6), (4,4,4,5,5,5,6,6,6), (7,7,7,8,8,8,9,9,9), (7,7,7,8,8,8,9,9,9), (7,7,7,8,8,8,9,9,9)); qvan:array[1..9,1..9]of longint= ((6,6,6,6,6 ,6,6,6,6), (6,7,7,7,7 ,7,7,7,6), (6,7,8,8,8 ,8,8,7,6), (6,7,8,9,9 ,9,8,7,6), (6,7,8,9,10,9,8,7,6), (6,7,8,9,9 ,9,8,7,6), (6,7,8,8,8 ,8,8,7,6), (6,7,7,7,7 ,7,7,7,6), (6,6,6,6,6 ,6,6,6,6)); var i,j,kcz,max,hg,dg:longint; ji:set of 0..9; used:array[1..90]of boolean; map:array[0..10,0..10]of longint; dot:array[0..81]of pos; fh:array[0..9,0..9]of boolean; fl:array[0..9,0..9]of boolean; fj:array[0..9,0..9]of boolean; function ysgs(se:lin):longint; var i,k:longint; begin k:=0; for i:=1 to 9 do if i in se then inc(k); exit(k); end; function zsfa:longint; var i,j,k,min,g:longint; begin min:=1000; g:=0; k:=0; for i:=1 to kcz do if not used[i] then begin ji:=[1..9]; for j:=1 to 9 do begin if (not fh[dot[i].x,j])or(not fl[dot[i].y,j])or(not fj[gong[dot[i].x,dot[i].y],j])then ji:=ji-[j]; end; k:=ysgs(ji); if k<min then begin min:=k;g:=i;end; end; exit(g); end; procedure cl; var i,k:longint; begin k:=0; for i:=1 to kcz do k:=k+map[dot[i].x,dot[i].y]*qvan[dot[i].x,dot[i].y]; if k>max then max:=k; end; procedure dfs(s:longint); var i:longint; begin if s=0 then dfs(zsfa) else begin inc(dg); for i:=1 to 9 do begin if fh[dot[s].x,i]and fl[dot[s].y,i]and fj[gong[dot[s].x,dot[s].y],i] then begin map[dot[s].x,dot[s].y]:=i; fh[dot[s].x,i]:=false; fl[dot[s].y,i]:=false; fj[gong[dot[s].x,dot[s].y],i]:=false; used[s]:=true; if dg=kcz then cl else dfs(zsfa); used[s]:=false; map[dot[s].x,dot[s].y]:=0; fh[dot[s].x,i]:=true; fl[dot[s].y,i]:=true; fj[gong[dot[s].x,dot[s].y],i]:=true; end; end; end; end; begin assign(input,'shudu.in'); assign(output,'shudu.out'); reset(input); rewrite(output); max:=0; kcz:=0; hg:=0; dg:=0; fillchar(fh,sizeof(fh),true); fillchar(fl,sizeof(fl),true); fillchar(fj,sizeof(fj),true); fillchar(used,sizeof(used),false); for i:=1 to 9 do for j:=1 to 9 do begin read(map[i,j]); if map[i,j]<>0 then begin hg:=map[i,j]*qvan[i,j]+hg; fh[i,map[i,j]]:=false; fl[j,map[i,j]]:=false; fj[gong[i,j],map[i,j]]:=false; end else begin inc(kcz); dot[kcz].x:=i; dot[kcz].y:=j; end; end; dfs(0); if max=0 then write(-1) else write(max+hg); close(input); close(output); end.
64位LINUX X86关于DMA API的一些问题, 求高手不吝赐教,急急急!
pSendDmaPool = dma_pool_create("DmaPool",pci_dev->dev), (size_t)(512 * 64*1024+1024), (size_t)(64*1024), (size_t)0); pDmaBuf = (unsigned char*)dma_pool_alloc(pSendDmaPool, GFP_KERNEL, &dma_handle); 我的平台是64位X86,我执行完dma_pool_create后,再执行dma_pool_alloc,就崩溃了,然后打印信息是: ------------[ cut here ]------------ WARNING: at mm/page_alloc.c:2139 __alloc_pages_nodemask+0x7a8/0x8d0() (Not tainted) Hardware name: All Series Modules linked in: fh130drv(U) ebtable_nat ebtables ipt_MASQUERADE iptable_nat nf_nat xt_CHECKSUM iptable_mangle bridge autofs4 8021q garp stp llc cpufreq_ondemand acpi_cpufreq freq_table mperf ipt_REJECT nf_conntrack_ipv4 nf_defrag_ipv4 iptable_filter ip_tables ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables ipv6 vhost_net macvtap macvlan tun kvm uinput ppdev iTCO_wdt iTCO_vendor_support microcode parport_pc parport r8169 mii sg serio_raw lpc_ich mfd_core i2c_i801 shpchp snd_hda_codec_realtek snd_hda_codec_hdmi snd_hda_intel snd_hda_codec snd_hwdep snd_seq snd_seq_device snd_pcm snd_timer snd soundcore snd_page_alloc ext4 jbd2 mbcache sd_mod crc_t10dif ahci xhci_hcd i915 drm_kms_helper drm i2c_algo_bit i2c_core video output dm_mirror dm_region_hash dm_log dm_mod [last unloaded: scsi_wait_scan] Pid: 3725, comm: fh130demo Not tainted 2.6.32-504.el6.x86_64 #1 Call Trace: [<ffffffff81074df7>] ? warn_slowpath_common+0x87/0xc0 [<ffffffff81074e4a>] ? warn_slowpath_null+0x1a/0x20 [<ffffffff811343e8>] ? __alloc_pages_nodemask+0x7a8/0x8d0 [<ffffffff815300da>] ? atomic_notifier_call_chain+0x1a/0x20 [<ffffffff813429ae>] ? notify_update+0x2e/0x30 [<ffffffff813443b0>] ? vt_console_print+0x260/0x330 [<ffffffff810a4c2f>] ? up+0x2f/0x50 [<ffffffff81074ffa>] ? _call_console_drivers+0x4a/0x80 [<ffffffff81012fe6>] ? dma_generic_alloc_coherent+0xa6/0x160 [<ffffffff8100bb8e>] ? apic_timer_interrupt+0xe/0x20 [<ffffffff81041fd1>] ? x86_swiotlb_alloc_coherent+0x31/0x70 [<ffffffff81164f5c>] ? dma_pool_alloc+0xfc/0x2a0 [<ffffffff815293c5>] ? printk+0x41/0x44 [<ffffffffa0546b36>] ? hbaDevAllocDmaBuffers+0x2f6/0x8f0 [fh130drv] [<ffffffffa0547298>] ? hbaDevInitialize+0x168/0x1b0 [fh130drv] [<ffffffffa053fd44>] ? Hba_FC_ASM_LoadConfig+0x54/0xa0 [fh130drv] [<ffffffffa053e532>] ? hba_dev_ioctl+0x1e2/0xbd0 [fh130drv] [<ffffffff81234be1>] ? avc_has_perm+0x71/0x90 [<ffffffff8133a483>] ? pty_write+0x73/0x80 [<ffffffff812369d4>] ? inode_has_perm+0x54/0xa0 [<ffffffff8109eefc>] ? remove_wait_queue+0x3c/0x50 [<ffffffff8105bd23>] ? __wake_up+0x53/0x70 [<ffffffff811a3752>] ? vfs_ioctl+0x22/0xa0 [<ffffffff811a38f4>] ? do_vfs_ioctl+0x84/0x580 [<ffffffff811a3e71>] ? sys_ioctl+0x81/0xa0 [<ffffffff810e5a7e>] ? __audit_syscall_exit+0x25e/0x290 [<ffffffff8100b072>] ? system_call_fastpath+0x16/0x1b ---[ end trace 03df1cd6b697aafa ]--- 求高手解答这个是怎么回事? 然后我想问一下,我可以分配 512 * 64*1024+1024这么大的DMA内存吗?并且对齐方式是64*1024? 然后我alloc的时候,每一块是多大呢? 谢谢了,没有金币了,不好意思!
每次都自动执行到master数据库,能默认执行到我创建的数据库吗,
1 每次都自动执行到master数据库,能默认执行到我创建的数据库吗, 每次都要切换创建的数据库吗,不智能。执行到master数据库可以撤销吗,恢复master 2 老是语法错误啊 sql没问题的 是不是 master数据库弄坏了 ``` USE [fhadmin] GO /****** Object: Database [fhadmin] Script Date: 2016/2/4 11:00:37 ******/ CREATE DATABASE [fhadmin] CONTAINMENT = NONE ON PRIMARY ( NAME = N'fhadmin', FILENAME = N'D:\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\fhadmin.mdf' , SIZE = 5120KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB ) LOG ON ( NAME = N'fhadmin_log', FILENAME = N'D:\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\fhadmin_log.ldf' , SIZE = 1024KB , MAXSIZE = 2048GB , FILEGROWTH = 10%) GO ALTER DATABASE [fhadmin] SET COMPATIBILITY_LEVEL = 110 GO IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled')) begin EXEC [fhadmin].[dbo].[sp_fulltext_database] @action = 'enable' en' GO ALTER DATABASE [fhadmin] SET ANSI_NULL_DEFAULT OFF GO ALTER DATABASE [fhadmin] SET ANSI_NULLS OFF GO ALTER DATABASE [fhadmin] SET ANSI_PADDING OFF GO ALTER DATABASE [fhadmin] SET ANSI_WARNINGS OFF GO ALTER DATABASE [fhadmin] SET ARITHABORT OFF GO ALTER DATABASE [fhadmin] SET AUTO_CLOSE OFF GO ALTER DATABASE [fhadmin] SET AUTO_CREATE_STATISTICS ON GO ALTER DATABASE [fhadmin] SET AUTO_SHRINK OFF GO ALTER DATABASE [fhadmin] SET AUTO_UPDATE_STATISTICS ON GO ALTER DATABASE [fhadmin] SET CURSOR_CLOSE_ON_COMMIT OFF GO ALTER DATABASE [fhadmin] SET CURSOR_DEFAULT GLOBAL GO ALTER DATABASE [fhadmin] SET CONCAT_NULL_YIELDS_NULL OFF GO ALTER DATABASE [fhadmin] SET NUMERIC_ROUNDABORT OFF GO ALTER DATABASE [fhadmin] SET QUOTED_IDENTIFIER OFF GO ALTER DATABASE [fhadmin] SET RECURSIVE_TRIGGERS OFF GO ALTER DATABASE [fhadmin] SET DISABLE_BROKER GO ALTER DATABASE [fhadmin] SET AUTO_UPDATE_STATISTICS_ASYNC OFF GO ALTER DATABASE [fhadmin] SET DATE_CORRELATION_OPTIMIZATION OFF GO ALTER DATABASE [fhadmin] SET TRUSTWORTHY OFF GO ALTER DATABASE [fhadmin] SET ALLOW_SNAPSHOT_ISOLATION OFF GO ALTER DATABASE [fhadmin] SET PARAMETERIZATION SIMPLE GO ALTER DATABASE [fhadmin] SET READ_COMMITTED_SNAPSHOT OFF GO ALTER DATABASE [fhadmin] SET HONOR_BROKER_PRIORITY OFF GO ALTER DATABASE [fhadmin] SET RECOVERY FULL GO ALTER DATABASE [fhadmin] SET MULTI_USER GO ALTER DATABASE [fhadmin] SET PAGE_VERIFY CHECKSUM GO ALTER DATABASE [fhadmin] SET DB_CHAINING OFF GO ALTER DATABASE [fhadmin] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) GO ALTER DATABASE [fhadmin] SET TARGET_RECOVERY_TIME = 0 SECONDS GO EXEC sys.sp_db_vardecimal_storage_format N'fhadmin', N'ON' GO USE [fhadmin] GO /****** Object: Table [dbo].[FH_TESTFH] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[FH_TESTFH]( [TESTFH_ID] [nvarchar](100) NOT NULL, [NAME] [nvarchar](255) NULL, [AGE] [int] NOT NULL, [BIRTHDAY] [nvarchar](32) NULL, PRIMARY KEY CLUSTERED ( [TESTFH_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_app_user] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_app_user]( [USER_ID] [nvarchar](100) NOT NULL, [USERNAME] [nvarchar](255) NULL, [PASSWORD] [nvarchar](255) NULL, [NAME] [nvarchar](255) NULL, [RIGHTS] [nvarchar](255) NULL, [ROLE_ID] [nvarchar](100) NULL, [LAST_LOGIN] [nvarchar](255) NULL, [IP] [nvarchar](100) NULL, [STATUS] [nvarchar](32) NULL, [BZ] [nvarchar](255) NULL, [PHONE] [nvarchar](100) NULL, [SFID] [nvarchar](100) NULL, [START_TIME] [nvarchar](100) NULL, [END_TIME] [nvarchar](100) NULL, [YEARS] [int] NULL, [NUMBER] [nvarchar](100) NULL, [EMAIL] [nvarchar](32) NULL, PRIMARY KEY CLUSTERED ( [USER_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_createcode] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_createcode]( [CREATECODE_ID] [nvarchar](100) NOT NULL, [PACKAGENAME] [nvarchar](50) NULL, [OBJECTNAME] [nvarchar](50) NULL, [TABLENAME] [nvarchar](50) NULL, [FIELDLIST] [nvarchar](4000) NULL, [CREATETIME] [nvarchar](100) NULL, [TITLE] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [CREATECODE_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_department] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_department]( [DEPARTMENT_ID] [nvarchar](100) NOT NULL, [NAME] [nvarchar](30) NULL, [NAME_EN] [nvarchar](50) NULL, [BIANMA] [nvarchar](50) NULL, [PARENT_ID] [nvarchar](100) NULL, [BZ] [nvarchar](255) NULL, [HEADMAN] [nvarchar](30) NULL, [TEL] [nvarchar](50) NULL, [FUNCTIONS] [nvarchar](255) NULL, [ADDRESS] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [DEPARTMENT_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_dictionaries] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_dictionaries]( [DICTIONARIES_ID] [nvarchar](100) NOT NULL, [NAME] [nvarchar](30) NULL, [NAME_EN] [nvarchar](50) NULL, [BIANMA] [nvarchar](50) NULL, [ORDER_BY] [int] NOT NULL, [PARENT_ID] [nvarchar](100) NULL, [BZ] [nvarchar](255) NULL, [TBSNAME] [nvarchar](100) NULL, PRIMARY KEY CLUSTERED ( [DICTIONARIES_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_fhbutton] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_fhbutton]( [FHBUTTON_ID] [nvarchar](100) NOT NULL, [NAME] [nvarchar](30) NULL, [QX_NAME] [nvarchar](50) NULL, [BZ] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [FHBUTTON_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_fhsms] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_fhsms]( [FHSMS_ID] [nvarchar](100) NOT NULL, [CONTENT] [nvarchar](1000) NULL, [TYPE] [nvarchar](5) NULL, [TO_USERNAME] [nvarchar](255) NULL, [FROM_USERNAME] [nvarchar](255) NULL, [SEND_TIME] [nvarchar](100) NULL, [STATUS] [nvarchar](5) NULL, [SANME_ID] [nvarchar](100) NULL, PRIMARY KEY CLUSTERED ( [FHSMS_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_menu] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_menu]( [MENU_ID] [int] NOT NULL, [MENU_NAME] [nvarchar](255) NULL, [MENU_URL] [nvarchar](255) NULL, [PARENT_ID] [nvarchar](100) NULL, [MENU_ORDER] [nvarchar](100) NULL, [MENU_ICON] [nvarchar](60) NULL, [MENU_TYPE] [nvarchar](10) NULL, [MENU_STATE] [int] NULL, PRIMARY KEY CLUSTERED ( [MENU_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_role] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_role]( [ROLE_ID] [nvarchar](100) NOT NULL, [ROLE_NAME] [nvarchar](100) NULL, [RIGHTS] [nvarchar](255) NULL, [PARENT_ID] [nvarchar](100) NULL, [ADD_QX] [nvarchar](255) NULL, [DEL_QX] [nvarchar](255) NULL, [EDIT_QX] [nvarchar](255) NULL, [CHA_QX] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [ROLE_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_role_fhbutton] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[sys_role_fhbutton]( [RB_ID] [nvarchar](100) NOT NULL, [ROLE_ID] [nvarchar](100) NULL, [BUTTON_ID] [nvarchar](100) NULL, PRIMARY KEY CLUSTERED ( [RB_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[sys_user] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[sys_user]( [USER_ID] [char](32) NOT NULL, [USERNAME] [nvarchar](100) NULL, [PASSWORD] [nvarchar](100) NULL, [NAME] [nvarchar](100) NULL, [RIGHTS] [nvarchar](255) NULL, [ROLE_ID] [nvarchar](100) NULL, [LAST_LOGIN] [nvarchar](100) NULL, [IP] [nvarchar](15) NULL, [STATUS] [nvarchar](32) NULL, [BZ] [nvarchar](255) NULL, [SKIN] [nvarchar](100) NULL, [EMAIL] [nvarchar](50) NULL, [NUMBER] [nvarchar](100) NULL, [PHONE] [nvarchar](100) NULL, CONSTRAINT [PK_sys_user] PRIMARY KEY CLUSTERED ( [USER_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object: Table [dbo].[tb_pictures] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[tb_pictures]( [PICTURES_ID] [nvarchar](100) NOT NULL, [TITLE] [nvarchar](255) NULL, [NAME] [nvarchar](255) NULL, [PATH] [nvarchar](255) NULL, [CREATETIME] [nvarchar](100) NULL, [MASTER_ID] [nvarchar](255) NULL, [BZ] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [PICTURES_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[weixin_command] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[weixin_command]( [COMMAND_ID] [nvarchar](100) NOT NULL, [KEYWORD] [nvarchar](255) NULL, [COMMANDCODE] [nvarchar](255) NULL, [CREATETIME] [nvarchar](255) NULL, [STATUS] [int] NOT NULL, [BZ] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [COMMAND_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[weixin_imgmsg] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[weixin_imgmsg]( [IMGMSG_ID] [nvarchar](100) NOT NULL, [KEYWORD] [nvarchar](255) NULL, [CREATETIME] [nvarchar](100) NULL, [STATUS] [int] NOT NULL, [BZ] [nvarchar](255) NULL, [TITLE1] [nvarchar](255) NULL, [DESCRIPTION1] [nvarchar](255) NULL, [IMGURL1] [nvarchar](255) NULL, [TOURL1] [nvarchar](255) NULL, [TITLE2] [nvarchar](255) NULL, [DESCRIPTION2] [nvarchar](255) NULL, [IMGURL2] [nvarchar](255) NULL, [TOURL2] [nvarchar](255) NULL, [TITLE3] [nvarchar](255) NULL, [DESCRIPTION3] [nvarchar](255) NULL, [IMGURL3] [nvarchar](255) NULL, [TOURL3] [nvarchar](255) NULL, [TITLE4] [nvarchar](255) NULL, [DESCRIPTION4] [nvarchar](255) NULL, [IMGURL4] [nvarchar](255) NULL, [TOURL4] [nvarchar](255) NULL, [TITLE5] [nvarchar](255) NULL, [DESCRIPTION5] [nvarchar](255) NULL, [IMGURL5] [nvarchar](255) NULL, [TOURL5] [nvarchar](255) NULL, [TITLE6] [nvarchar](255) NULL, [DESCRIPTION6] [nvarchar](255) NULL, [IMGURL6] [nvarchar](255) NULL, [TOURL6] [nvarchar](255) NULL, [TITLE7] [nvarchar](255) NULL, [DESCRIPTION7] [nvarchar](255) NULL, [IMGURL7] [nvarchar](255) NULL, [TOURL7] [nvarchar](255) NULL, [TITLE8] [nvarchar](255) NULL, [DESCRIPTION8] [nvarchar](255) NULL, [IMGURL8] [nvarchar](255) NULL, [TOURL8] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [IMGMSG_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO /****** Object: Table [dbo].[weixin_textmsg] Script Date: 2016/2/4 11:00:37 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[weixin_textmsg]( [TEXTMSG_ID] [nvarchar](100) NOT NULL, [KEYWORD] [nvarchar](255) NULL, [CONTENT] [nvarchar](255) NULL, [CREATETIME] [nvarchar](100) NULL, [STATUS] [int] NULL, [BZ] [nvarchar](255) NULL, PRIMARY KEY CLUSTERED ( [TEXTMSG_ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO INSERT [dbo].[sys_app_user] ([USER_ID], [USERNAME], [PASSWORD], [NAME], [RIGHTS], [ROLE_ID], [LAST_LOGIN], [IP], [STATUS], [BZ], [PHONE], [SFID], [START_TIME], [END_TIME], [YEARS], [NUMBER], [EMAIL]) VALUES (N'1e89e6504be349a68c025976b3ecc1d1', N'a1', N'698d51a19d8a121ce581499d7b701668', N'会员甲', N'', N'115b386ff04f4352b060dffcd2b5d1da', N'', N'', N'1', N'121', N'1212', N'1212', N'2015-12-02', N'2015-12-25', 2, N'111', N'313596790@qq.com') INSERT [dbo].[sys_app_user] ([USER_ID], [USERNAME], [PASSWORD], [NAME], [RIGHTS], [ROLE_ID], [LAST_LOGIN], [IP], [STATUS], [BZ], [PHONE], [SFID], [START_TIME], [END_TIME], [YEARS], [NUMBER], [EMAIL]) VALUES (N'ead1f56708e4409c8d071e0a699e5633', N'a2', N'bcbe3365e6ac95ea2c0343a2395834dd', N'会员乙', N'', N'1b67fc82ce89457a8347ae53e43a347e', N'', N'', N'0', N'', N'', N'', N'2015-12-01', N'2015-12-24', 1, N'121', N'978336446@qq.com') INSERT [dbo].[sys_createcode] ([CREATECODE_ID], [PACKAGENAME], [OBJECTNAME], [TABLENAME], [FIELDLIST], [CREATETIME], [TITLE]) VALUES (N'002ea762e3e242a7a10ea5ca633701d8', N'system', N'Buttonrights', N'sys_,fh,BUTTONRIGHTS', N'NAME,fh,String,fh,名称,fh,是,fh,无,fh,255Q313596790', N'2016-01-16 23:20:36', N'按钮权限') INSERT [dbo].[sys_createcode] ([CREATECODE_ID], [PACKAGENAME], [OBJECTNAME], [TABLENAME], [FIELDLIST], [CREATETIME], [TITLE]) VALUES (N'11c0f9b57ec94cefa21d58ed5c6161ae', N'system', N'Testfh', N'FH_,fh,TESTFH', N'NAME,fh,String,fh,姓名,fh,是,fh,无,fh,255Q313596790AGE,fh,Integer,fh,年龄,fh,是,fh,无,fh,11Q313596790BIRTHDAY,fh,Date,fh,生日,fh,是,fh,无,fh,32Q313596790', N'2016-02-01 15:45:18', N'测试') INSERT [dbo].[sys_createcode] ([CREATECODE_ID], [PACKAGENAME], [OBJECTNAME], [TABLENAME], [FIELDLIST], [CREATETIME], [TITLE]) VALUES (N'c7586f931fd44c61beccd3248774c68c', N'system', N'Department', N'SYS_,fh,DEPARTMENT', N'NAME,fh,String,fh,名称,fh,是,fh,无,fh,30Q313596790NAME_EN,fh,String,fh,英文,fh,是,fh,无,fh,50Q313596790BIANMA,fh,String,fh,编码,fh,是,fh,无,fh,50Q313596790PARENT_ID,fh,String,fh,上级ID,fh,否,fh,无,fh,100Q313596790BZ,fh,String,fh,备注,fh,是,fh,无,fh,255Q313596790HEADMAN,fh,String,fh,负责人,fh,是,fh,无,fh,30Q313596790TEL,fh,String,fh,电话,fh,是,fh,无,fh,50Q313596790FUNCTIONS,fh,String,fh,部门职能,fh,是,fh,无,fh,255Q313596790ADDRESS,fh,String,fh,地址,fh,是,fh,无,fh,255Q313596790', N'2015-12-20 01:49:25', N'组织机构') INSERT [dbo].[sys_createcode] ([CREATECODE_ID], [PACKAGENAME], [OBJECTNAME], [TABLENAME], [FIELDLIST], [CREATETIME], [TITLE]) VALUES (N'dbd7b8330d774dcabd184eca8668a295', N'system', N'Fhsms', N'SYS_,fh,FHSMS', N'CONTENT,fh,String,fh,内容,fh,是,fh,无,fh,1000Q313596790TYPE,fh,String,fh,类型,fh,否,fh,无,fh,5Q313596790TO_USERNAME,fh,String,fh,收信人,fh,是,fh,无,fh,255Q313596790FROM_USERNAME,fh,String,fh,发信人,fh,是,fh,无,fh,255Q313596790SEND_TIME,fh,String,fh,发信时间,fh,是,fh,无,fh,100Q313596790STATUS,fh,String,fh,状态,fh,否,fh,无,fh,5Q313596790SANME_ID,fh,String,fh,共同ID,fh,是,fh,无,fh,100Q313596790', N'2016-01-23 01:44:15', N'站内信') INSERT [dbo].[sys_createcode] ([CREATECODE_ID], [PACKAGENAME], [OBJECTNAME], [TABLENAME], [FIELDLIST], [CREATETIME], [TITLE]) VALUES (N'fe239f8742194481a5b56f90cad71520', N'system', N'Fhbutton', N'SYS_,fh,FHBUTTON', N'NAME,fh,String,fh,名称,fh,是,fh,无,fh,30Q313596790QX_NAME,fh,String,fh,权限标识,fh,是,fh,无,fh,50Q313596790BZ,fh,String,fh,备注,fh,是,fh,无,fh,255Q313596790', N'2016-01-15 18:38:40', N'按钮管理') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'0956d8c279274fca92f4091f2a69a9ad', N'销售会计', N'xiaokuai', N'05896', N'd41af567914a409893d011aa53eda797', N'', N'', N'', N'', N'') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'3e7227e11dc14b4d9e863dd1a1fcedf6', N'成本会计', N'chengb', N'03656', N'd41af567914a409893d011aa53eda797', N'', N'', N'', N'', N'') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'5cccdb7c432449d8b853c52880058140', N'B公司', N'b', N'002', N'0', N'冶铁', N'李四', N'112', N'冶铁', N'河北') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'83a25761c618457cae2fa1211bd8696d', N'销售B组', N'xiaob', N'002365', N'cbbc84eddde947ba8af7d509e430eb70', N'', N'李四', N'', N'', N'') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'8f8b045470f342fdbc4c312ab881d62b', N'销售A组', N'xiaoA', N'0326', N'cbbc84eddde947ba8af7d509e430eb70', N'', N'张三', N'0201212', N'', N'') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'a0982dea52554225ab682cd4b421de47', N'1队', N'yidui', N'02563', N'8f8b045470f342fdbc4c312ab881d62b', N'', N'小王', N'12356989', N'', N'') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'a6c6695217ba4a4dbfe9f7e9d2c06730', N'A公司', N'a', N'001', N'0', N'挖煤', N'张三', N'110', N'洼煤矿', N'山西') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'cbbc84eddde947ba8af7d509e430eb70', N'销售部', N'xiaoshoubu', N'00201', N'5cccdb7c432449d8b853c52880058140', N'推销商品', N'小明', N'11236', N'推销商品', N'909办公室') INSERT [dbo].[sys_department] ([DEPARTMENT_ID], [NAME], [NAME_EN], [BIANMA], [PARENT_ID], [BZ], [HEADMAN], [TEL], [FUNCTIONS], [ADDRESS]) VALUES (N'd41af567914a409893d011aa53eda797', N'财务部', N'caiwubu', N'00101', N'a6c6695217ba4a4dbfe9f7e9d2c06730', N'负责发工资', N'王武', N'11236', N'管理财务', N'308办公室') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'096e4ec8986149d994b09e604504e38d', N'黄浦区', N'huangpu', N'0030201', 1, N'f1ea30ddef1340609c35c88fb2919bee', N'黄埔', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'12a62a3e5bed44bba0412b7e6b733c93', N'北京', N'beijing', N'00301', 1, N'be4a8c5182c744d28282a5345783a77f', N'北京', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'507fa87a49104c7c8cdb52fdb297da12', N'宣武区', N'xuanwuqu', N'0030101', 1, N'12a62a3e5bed44bba0412b7e6b733c93', N'宣武区', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'8994f5995f474e2dba6cfbcdfe5ea07a', N'语文', N'yuwen', N'00201', 1, N'fce20eb06d7b4b4d8f200eda623f725c', N'语文', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'8ea7c44af25f48b993a14f791c8d689f', N'分类', N'fenlei', N'001', 1, N'0', N'分类', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'be4a8c5182c744d28282a5345783a77f', N'地区', N'diqu', N'003', 3, N'0', N'地区', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'd428594b0494476aa7338d9061e23ae3', N'红色', N'red', N'00101', 1, N'8ea7c44af25f48b993a14f791c8d689f', N'红色', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'de9afadfbed0428fa343704d6acce2c4', N'绿色', N'green', N'00102', 2, N'8ea7c44af25f48b993a14f791c8d689f', N'绿色', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'f1ea30ddef1340609c35c88fb2919bee', N'上海', N'shanghai', N'00302', 2, N'be4a8c5182c744d28282a5345783a77f', N'上海', N'') INSERT [dbo].[sys_dictionaries] ([DICTIONARIES_ID], [NAME], [NAME_EN], [BIANMA], [ORDER_BY], [PARENT_ID], [BZ], [TBSNAME]) VALUES (N'fce20eb06d7b4b4d8f200eda623f725c', N'课程', N'kecheng', N'002', 2, N'0', N'课程', N'') INSERT [dbo].[sys_fhbutton] ([FHBUTTON_ID], [NAME], [QX_NAME], [BZ]) VALUES (N'3542adfbda73410c976e185ffe50ad06', N'导出EXCEL', N'toExcel', N'导出EXCEL') INSERT [dbo].[sys_fhbutton] ([FHBUTTON_ID], [NAME], [QX_NAME], [BZ]) VALUES (N'46992ea280ba4b72b29dedb0d4bc0106', N'发邮件', N'email', N'发送电子邮件') INSERT [dbo].[sys_fhbutton] ([FHBUTTON_ID], [NAME], [QX_NAME], [BZ]) VALUES (N'4efa162fce8340f0bd2dcd3b11d327ec', N'导入EXCEL', N'FromExcel', N'导入EXCEL到系统用户') INSERT [dbo].[sys_fhbutton] ([FHBUTTON_ID], [NAME], [QX_NAME], [BZ]) VALUES (N'cc51b694d5344d28a9aa13c84b7166cd', N'发短信', N'sms', N'发送短信') INSERT [dbo].[sys_fhbutton] ([FHBUTTON_ID], [NAME], [QX_NAME], [BZ]) VALUES (N'da7fd386de0b49ce809984f5919022b8', N'站内信', N'FHSMS', N'发送站内信') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'05879f5868824f35932ee9f2062adc03', N'你好', N'2', N'admin', N'san', N'2016-01-25 14:05:31', N'1', N'b311e893228f42d5a05dbe16917fd16f') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'2635dd035c6f4bb5a091abdd784bd899', N'你好', N'2', N'san', N'admin', N'2016-01-25 14:05:02', N'2', N'1b7637306683460f89174c2b025862b5') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'52378ccd4e2d4fe08994d1652af87c68', N'你好', N'1', N'admin', N'san', N'2016-01-25 16:26:44', N'1', N'920b20dafdfb4c09b560884eb277c51d') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'77ed13f9c49a4c4bb460c41b8580dd36', N'gggg', N'2', N'admin', N'san', N'2016-01-24 21:22:43', N'2', N'dd9ee339576e48c5b046b94fa1901d00') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'98a6869f942042a1a037d9d9f01cb50f', N'你好', N'1', N'admin', N'san', N'2016-01-25 14:05:02', N'2', N'1b7637306683460f89174c2b025862b5') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'9e00295529014b6e8a27019cbccb3da1', N'柔柔弱弱', N'1', N'admin', N'san', N'2016-01-24 21:22:57', N'1', N'a29603d613ea4e54b5678033c1bf70a6') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'd3aedeb430f640359bff86cd657a8f59', N'你好', N'1', N'admin', N'san', N'2016-01-24 21:22:12', N'1', N'f022fbdce3d845aba927edb698beb90b') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'e5376b1bd54b489cb7f2203632bd74ec', N'管理员好', N'2', N'admin', N'san', N'2016-01-25 14:06:13', N'2', N'b347b2034faf43c79b54be4627f3bd2b') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'e613ac0fcc454f32895a70b747bf4fb5', N'你也好', N'2', N'admin', N'san', N'2016-01-25 16:27:54', N'2', N'ce8dc3b15afb40f28090f8b8e13f078d') INSERT [dbo].[sys_fhsms] ([FHSMS_ID], [CONTENT], [TYPE], [TO_USERNAME], [FROM_USERNAME], [SEND_TIME], [STATUS], [SANME_ID]) VALUES (N'f25e00cfafe741a3a05e3839b66dc7aa', N'你好', N'2', N'san', N'admin', N'2016-01-25 16:26:44', N'1', N'920b20dafdfb4c09b560884eb277c51d') INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (1, N'系统管理', N'#', N'0', N'1', N'menu-icon fa fa-desktop blue', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (2, N'权限管理', N'#', N'1', N'1', N'menu-icon fa fa-lock black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (6, N'信息管理', N'#', N'0', N'5', N'menu-icon fa fa-credit-card green', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (7, N'图片管理', N'pictures/list.do', N'6', N'1', N'menu-icon fa fa-folder-o pink', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (8, N'性能监控', N'druid/index.html', N'9', N'1', N'menu-icon fa fa-tachometer red', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (9, N'系统工具', N'#', N'0', N'3', N'menu-icon fa fa-cog black', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (10, N'接口测试', N'tool/interfaceTest.do', N'9', N'2', N'menu-icon fa fa-exchange green', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (11, N'发送邮件', N'tool/goSendEmail.do', N'9', N'3', N'menu-icon fa fa-envelope-o green', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (12, N'置二维码', N'tool/goTwoDimensionCode.do', N'9', N'4', N'menu-icon fa fa-barcode green', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (14, N'地图工具', N'tool/map.do', N'9', N'6', N'menu-icon fa fa-globe black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (15, N'微信管理', N'#', N'0', N'4', N'menu-icon fa fa-comments purple', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (16, N'文本回复', N'textmsg/list.do', N'15', N'2', N'menu-icon fa fa-comment green', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (17, N'应用命令', N'command/list.do', N'15', N'4', N'menu-icon fa fa-comment grey', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (18, N'图文回复', N'imgmsg/list.do', N'15', N'3', N'menu-icon fa fa-comment pink', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (19, N'关注回复', N'textmsg/goSubscribe.do', N'15', N'1', N'menu-icon fa fa-comment orange', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (20, N'在线管理', N'onlinemanager/list.do', N'1', N'6', N'menu-icon fa fa-laptop green', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (21, N'打印测试', N'tool/printTest.do', N'9', N'7', N'menu-icon fa fa-hdd-o grey', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (22, N'一级菜单', N'#', N'0', N'6', N'menu-icon fa fa-fire orange', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (23, N'二级菜单', N'#', N'22', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (24, N'三级菜单', N'#', N'23', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (30, N'四级菜单', N'#', N'24', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (31, N'五级菜单1', N'#', N'30', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (32, N'五级菜单2', N'#', N'30', N'2', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (33, N'六级菜单', N'#', N'31', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (34, N'六级菜单2', N'login_default.do', N'31', N'2', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (35, N'四级菜单2', N'login_default.do', N'24', N'2', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (36, N'角色(基础权限)', N'role.do', N'2', N'1', N'menu-icon fa fa-key orange', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (37, N'按钮权限', N'buttonrights/list.do', N'2', N'2', N'menu-icon fa fa-key green', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (38, N'菜单管理', N'menu/listAllMenu.do', N'1', N'3', N'menu-icon fa fa-folder-open-o brown', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (39, N'按钮管理', N'fhbutton/list.do', N'1', N'2', N'menu-icon fa fa-download orange', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (40, N'用户管理', N'#', N'0', N'2', N'menu-icon fa fa-users blue', N'2', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (41, N'系统用户', N'user/listUsers.do', N'40', N'1', N'menu-icon fa fa-users green', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (42, N'会员管理', N'happuser/listUsers.do', N'40', N'2', N'menu-icon fa fa-users orange', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (43, N'数据字典', N'dictionaries/listAllDict.do?DICTIONARIES_ID=0', N'1', N'4', N'menu-icon fa fa-book purple', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (44, N'代码生成', N'createCode/list.do', N'9', N'0', N'menu-icon fa fa-cogs brown', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (45, N'七级菜单1', N'#', N'33', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (46, N'七级菜单2', N'#', N'33', N'2', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (47, N'八级菜单', N'login_default.do', N'45', N'1', N'menu-icon fa fa-leaf black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (48, N'图表报表', N' tool/fusionchartsdemo.do', N'9', N'5', N'menu-icon fa fa-bar-chart-o black', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (49, N'组织机构', N'department/listAllDepartment.do?DEPARTMENT_ID=0', N'1', N'5', N'menu-icon fa fa-users blue', N'1', 1) INSERT [dbo].[sys_menu] ([MENU_ID], [MENU_NAME], [MENU_URL], [PARENT_ID], [MENU_ORDER], [MENU_ICON], [MENU_TYPE], [MENU_STATE]) VALUES (50, N'站内信', N'fhsms/list.do', N'6', N'2', N'menu-icon fa fa-envelope green', N'1', 1) INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'1', N'系统管理组', N'4503598587174854', N'0', N'1', N'1', N'1', N'1') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'115b386ff04f4352b060dffcd2b5d1da', N'中级会员', N'498', N'2', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'1b67fc82ce89457a8347ae53e43a347e', N'初级会员', N'498', N'2', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'2', N'会员组', N'498', N'0', N'0', N'0', N'0', N'1') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'3264c8e83d0248bb9e3ea6195b4c0216', N'一级管理员', N'4503598587174854', N'1', N'2251798773489606', N'2251798773489606', N'1125898866646982', N'2251798773489606') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'46294b31a71c4600801724a6eb06bb26', N'职位组', N'', N'0', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'5466347ac07044cb8d82990ec7f3a90e', N'主管', N'', N'46294b31a71c4600801724a6eb06bb26', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'68f8e4a39efe47c7bb869e9d15ab925d', N'二级管理员', N'4503598587174854', N'1', N'0', N'0', N'2251798773489606', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'856849f422774ad390a4e564054d8cc8', N'经理', N'', N'46294b31a71c4600801724a6eb06bb26', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'8b70a7e67f2841e7aaba8a4d92e5ff6f', N'高级会员', N'498', N'2', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'c21cecf84048434b93383182b1d98cba', N'组长', N'', N'46294b31a71c4600801724a6eb06bb26', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'd449195cd8e7491080688c58e11452eb', N'总监', N'', N'46294b31a71c4600801724a6eb06bb26', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_role] ([ROLE_ID], [ROLE_NAME], [RIGHTS], [PARENT_ID], [ADD_QX], [DEL_QX], [EDIT_QX], [CHA_QX]) VALUES (N'de9de2f006e145a29d52dfadda295353', N'三级管理员', N'4503598587174854', N'1', N'0', N'0', N'0', N'0') INSERT [dbo].[sys_user] ([USER_ID], [USERNAME], [PASSWORD], [NAME], [RIGHTS], [ROLE_ID], [LAST_LOGIN], [IP], [STATUS], [BZ], [SKIN], [EMAIL], [NUMBER], [PHONE]) VALUES (N'1 ', N'admin', N'de41b7fb99201d8334c23c014db35ecd92df81bc', N'系统管理员', N'1133671055321055258374707980945218933803269864762743594642571294', N'1', N'2016-02-01 16:36:10', N'127.0.0.1', N'0', N'最高统治者', N'default', N'QQ313596790@main.com', N'001', N'18788888888') INSERT [dbo].[sys_user] ([USER_ID], [USERNAME], [PASSWORD], [NAME], [RIGHTS], [ROLE_ID], [LAST_LOGIN], [IP], [STATUS], [BZ], [SKIN], [EMAIL], [NUMBER], [PHONE]) VALUES (N'69177258a06e4927b4639ab1684c3320', N'san', N'47c4a8dc64ac2f0bb46bbd8813b037c9718f9349', N'三', N'', N'3264c8e83d0248bb9e3ea6195b4c0216', N'2016-01-25 16:25:36', N'192.168.1.102', N'0', N'111', N'default', N'978336446@qq.com', N'333', N'13562202556') INSERT [dbo].[sys_user] ([USER_ID], [USERNAME], [PASSWORD], [NAME], [RIGHTS], [ROLE_ID], [LAST_LOGIN], [IP], [STATUS], [BZ], [SKIN], [EMAIL], [NUMBER], [PHONE]) VALUES (N'9991f4d7782a4ccfb8a65bd96ea7aafa', N'lisi', N'2612ade71c1e48cd7150b5f4df152faa699cedfe', N'李四', N'', N'3264c8e83d0248bb9e3ea6195b4c0216', N'2016-01-06 01:24:26', N'127.0.0.1', N'0', N'小李', N'default', N'313596790@qq.com', N'1102', N'13566233663') INSERT [dbo].[sys_user] ([USER_ID], [USERNAME], [PASSWORD], [NAME], [RIGHTS], [ROLE_ID], [LAST_LOGIN], [IP], [STATUS], [BZ], [SKIN], [EMAIL], [NUMBER], [PHONE]) VALUES (N'e29149962e944589bb7da23ad18ddeed', N'zhangsan', N'c2da1419caf053885c492e10ebde421581cdc03f', N'张三', N'', N'3264c8e83d0248bb9e3ea6195b4c0216', N'', N'', N'0', N'小张', N'default', N'zhangsan@www.com', N'1101', N'2147483647') INSERT [dbo].[tb_pictures] ([PICTURES_ID], [TITLE], [NAME], [PATH], [CREATETIME], [MASTER_ID], [BZ]) VALUES (N'b06010340ee54cfab49b8bfbe2387557', N'图片', N'5e6ba5ad3067482e9a8063b0627ee983.png', N'20160125/5e6ba5ad3067482e9a8063b0627ee983.png', N'2016-01-25 16:49:44', N'1', N'图片管理处上传') INSERT [dbo].[tb_pictures] ([PICTURES_ID], [TITLE], [NAME], [PATH], [CREATETIME], [MASTER_ID], [BZ]) VALUES (N'c9f1eca620c94c27bfa7028c66911f41', N'图片', N'928da750ec8542ceb7b2495f45ea6a9e.jpg', N'20160125/928da750ec8542ceb7b2495f45ea6a9e.jpg', N'2016-01-25 16:49:44', N'1', N'图片管理处上传') INSERT [dbo].[weixin_command] ([COMMAND_ID], [KEYWORD], [COMMANDCODE], [CREATETIME], [STATUS], [BZ]) VALUES (N'2636750f6978451b8330874c9be042c2', N'锁定服务器', N'rundll32.exe user32.dll,LockWorkStation', N'2015-05-10 21:25:06', 1, N'锁定计算机') INSERT [dbo].[weixin_command] ([COMMAND_ID], [KEYWORD], [COMMANDCODE], [CREATETIME], [STATUS], [BZ]) VALUES (N'46217c6d44354010823241ef484f7214', N'打开浏览器', N'C:/Program Files/Internet Explorer/iexplore.exe', N'2015-05-09 02:43:02', 1, N'打开浏览器操作') INSERT [dbo].[weixin_command] ([COMMAND_ID], [KEYWORD], [COMMANDCODE], [CREATETIME], [STATUS], [BZ]) VALUES (N'576adcecce504bf3bb34c6b4da79a177', N'关闭浏览器', N'taskkill /f /im iexplore.exe', N'2015-05-09 02:36:48', 2, N'关闭浏览器操作') INSERT [dbo].[weixin_command] ([COMMAND_ID], [KEYWORD], [COMMANDCODE], [CREATETIME], [STATUS], [BZ]) VALUES (N'854a157c6d99499493f4cc303674c01f', N'关闭QQ', N'taskkill /f /im qq.exe', N'2015-05-10 21:25:46', 1, N'关闭QQ') INSERT [dbo].[weixin_command] ([COMMAND_ID], [KEYWORD], [COMMANDCODE], [CREATETIME], [STATUS], [BZ]) VALUES (N'ab3a8c6310ca4dc8b803ecc547e55ae7', N'打开QQ', N'D:/SOFT/QQ/QQ/Bin/qq.exe', N'2015-05-10 21:25:25', 1, N'打开QQ') INSERT [dbo].[weixin_textmsg] ([TEXTMSG_ID], [KEYWORD], [CONTENT], [CREATETIME], [STATUS], [BZ]) VALUES (N'63681adbe7144f10b66d6863e07f23c2', N'你好', N'你也好', N'2015-05-09 02:39:23', 1, N'文本回复') INSERT [dbo].[weixin_textmsg] ([TEXTMSG_ID], [KEYWORD], [CONTENT], [CREATETIME], [STATUS], [BZ]) VALUES (N'695cd74779734231928a253107ab0eeb', N'吃饭', N'吃了噢噢噢噢', N'2015-05-10 22:52:27', 1, N'文本回复') INSERT [dbo].[weixin_textmsg] ([TEXTMSG_ID], [KEYWORD], [CONTENT], [CREATETIME], [STATUS], [BZ]) VALUES (N'd4738af7aea74a6ca1a5fb25a98f9acb', N'关注', N'这里是关注后回复的内容', N'2015-05-11 02:12:36', 1, N'关注回复') ALTER TABLE [dbo].[FH_TESTFH] ADD DEFAULT (NULL) FOR [NAME] GO ALTER TABLE [dbo].[FH_TESTFH] ADD DEFAULT (NULL) FOR [BIRTHDAY] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [USERNAME] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [PASSWORD] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [NAME] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [RIGHTS] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [ROLE_ID] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [LAST_LOGIN] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [IP] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [STATUS] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [PHONE] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [SFID] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [START_TIME] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [END_TIME] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [YEARS] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [NUMBER] GO ALTER TABLE [dbo].[sys_app_user] ADD DEFAULT (NULL) FOR [EMAIL] GO ALTER TABLE [dbo].[sys_createcode] ADD DEFAULT (NULL) FOR [PACKAGENAME] GO ALTER TABLE [dbo].[sys_createcode] ADD DEFAULT (NULL) FOR [OBJECTNAME] GO ALTER TABLE [dbo].[sys_createcode] ADD DEFAULT (NULL) FOR [TABLENAME] GO ALTER TABLE [dbo].[sys_createcode] ADD DEFAULT (NULL) FOR [FIELDLIST] GO ALTER TABLE [dbo].[sys_createcode] ADD DEFAULT (NULL) FOR [CREATETIME] GO ALTER TABLE [dbo].[sys_createcode] ADD DEFAULT (NULL) FOR [TITLE] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [NAME] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [NAME_EN] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [BIANMA] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [PARENT_ID] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [HEADMAN] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [TEL] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [FUNCTIONS] GO ALTER TABLE [dbo].[sys_department] ADD DEFAULT (NULL) FOR [ADDRESS] GO ALTER TABLE [dbo].[sys_dictionaries] ADD DEFAULT (NULL) FOR [NAME] GO ALTER TABLE [dbo].[sys_dictionaries] ADD DEFAULT (NULL) FOR [NAME_EN] GO ALTER TABLE [dbo].[sys_dictionaries] ADD DEFAULT (NULL) FOR [BIANMA] GO ALTER TABLE [dbo].[sys_dictionaries] ADD DEFAULT (NULL) FOR [PARENT_ID] GO ALTER TABLE [dbo].[sys_dictionaries] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[sys_dictionaries] ADD DEFAULT (NULL) FOR [TBSNAME] GO ALTER TABLE [dbo].[sys_fhbutton] ADD DEFAULT (NULL) FOR [NAME] GO ALTER TABLE [dbo].[sys_fhbutton] ADD DEFAULT (NULL) FOR [QX_NAME] GO ALTER TABLE [dbo].[sys_fhbutton] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [CONTENT] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [TYPE] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [TO_USERNAME] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [FROM_USERNAME] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [SEND_TIME] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [STATUS] GO ALTER TABLE [dbo].[sys_fhsms] ADD DEFAULT (NULL) FOR [SANME_ID] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [MENU_NAME] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [MENU_URL] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [PARENT_ID] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [MENU_ORDER] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [MENU_ICON] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [MENU_TYPE] GO ALTER TABLE [dbo].[sys_menu] ADD DEFAULT (NULL) FOR [MENU_STATE] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [ROLE_NAME] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [RIGHTS] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [PARENT_ID] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [ADD_QX] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [DEL_QX] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [EDIT_QX] GO ALTER TABLE [dbo].[sys_role] ADD DEFAULT (NULL) FOR [CHA_QX] GO ALTER TABLE [dbo].[sys_role_fhbutton] ADD DEFAULT (NULL) FOR [ROLE_ID] GO ALTER TABLE [dbo].[sys_role_fhbutton] ADD DEFAULT (NULL) FOR [BUTTON_ID] GO ALTER TABLE [dbo].[tb_pictures] ADD DEFAULT (NULL) FOR [TITLE] GO ALTER TABLE [dbo].[tb_pictures] ADD DEFAULT (NULL) FOR [NAME] GO ALTER TABLE [dbo].[tb_pictures] ADD DEFAULT (NULL) FOR [PATH] GO ALTER TABLE [dbo].[tb_pictures] ADD DEFAULT (NULL) FOR [CREATETIME] GO ALTER TABLE [dbo].[tb_pictures] ADD DEFAULT (NULL) FOR [MASTER_ID] GO ALTER TABLE [dbo].[tb_pictures] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[weixin_command] ADD DEFAULT (NULL) FOR [KEYWORD] GO ALTER TABLE [dbo].[weixin_command] ADD DEFAULT (NULL) FOR [COMMANDCODE] GO ALTER TABLE [dbo].[weixin_command] ADD DEFAULT (NULL) FOR [CREATETIME] GO ALTER TABLE [dbo].[weixin_command] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [KEYWORD] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [CREATETIME] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE1] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION1] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL1] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL1] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE2] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION2] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL2] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL2] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE3] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION3] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL3] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL3] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE4] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION4] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL4] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL4] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE5] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION5] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL5] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL5] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE6] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION6] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL6] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL6] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE7] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION7] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL7] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL7] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TITLE8] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [DESCRIPTION8] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [IMGURL8] GO ALTER TABLE [dbo].[weixin_imgmsg] ADD DEFAULT (NULL) FOR [TOURL8] GO ALTER TABLE [dbo].[weixin_textmsg] ADD DEFAULT (NULL) FOR [KEYWORD] GO ALTER TABLE [dbo].[weixin_textmsg] ADD DEFAULT (NULL) FOR [CONTENT] GO ALTER TABLE [dbo].[weixin_textmsg] ADD DEFAULT (NULL) FOR [CREATETIME] GO ALTER TABLE [dbo].[weixin_textmsg] ADD DEFAULT (NULL) FOR [STATUS] GO ALTER TABLE [dbo].[weixin_textmsg] ADD DEFAULT (NULL) FOR [BZ] GO ALTER TABLE [dbo].[sys_role_fhbutton] WITH NOCHECK ADD CONSTRAINT [FK_sys_role_fhbutton_sys_fhbutton] FOREIGN KEY([BUTTON_ID]) REFERENCES [dbo].[sys_fhbutton] ([FHBUTTON_ID]) ON DELETE CASCADE NOT FOR REPLICATION GO ALTER TABLE [dbo].[sys_role_fhbutton] CHECK CONSTRAINT [FK_sys_role_fhbutton_sys_fhbutton] GO ALTER TABLE [dbo].[sys_role_fhbutton] WITH NOCHECK ADD CONSTRAINT [FK_sys_role_fhbutton_sys_role] FOREIGN KEY([ROLE_ID]) REFERENCES [dbo].[sys_role] ([ROLE_ID]) ON DELETE CASCADE NOT FOR REPLICATION GO ALTER TABLE [dbo].[sys_role_fhbutton] CHECK CONSTRAINT [FK_sys_role_fhbutton_sys_role] GO USE [master] GO ALTER DATABASE [fhadmin] SET READ_WRITE GO ``` 老是语法错误啊 sql没问题的 是不是 master数据库弄坏了 消息 102,级别 15,状态 1,第 3 行 'CONTAINMENT' 附近有语法错误。 消息 15048,级别 16,状态 1,第 1 行 数据库兼容级别的有效值为 80、90 或 100。 消息 102,级别 15,状态 1,第 4 行 'en' 附近有语法错误。 消息 168,级别 15,状态 1,第 422 行 浮点值 '3e7227' 超出了计算机表示范围(8 个字节)。 消息 168,级别 15,状态 1,第 450 行 浮点值 '9e00295529014' 超出了计算机表示范围(8 个字节)。 消息 1007,级别 15,状态 1,第 509 行 数字 '1133671055321055258374707980945218933803269864762743594642571294' 超出了数值表示范围(最大精度为 38)。 消息 105,级别 15,状态 1,第 522 行 字符串 ')
有URL,API_NAME,ak,sk用delphi怎么调用?
如题: URL=https://api-csb-broker.boe.com.cn:443/test API_NAME = "SMT_API_TEST"; ak = "f97882c1484a43769a9748f59f921ee5"; sk = "zD/F78Lyqma0DI5Fh05+EeYkowc-"; 用delphi怎么调用?
中国天气网接口返回问题
string areaid = "101010100"; string type = "forecast_v"; string date = DateTime.Now.ToString("yyyyMMddHHmm"); 接口返回数据为: {"c":{"c1":"101010100","c2":"beijing","c3":"北京","c4":"beijing","c5":"北京","c6":"beijing","c7":"北京","c8":"china","c9":"中国","c10":"1","c11":"010","c12":"100000","c13":116.391000,"c14":39.904000,"c15":"33","c16":"AZ9010","c17":"+8"},"f":{"f1":[{"fa":"00","fb":"01","fc":"32","fd":"20","fe":"0","ff":"0","fg":"0","fh":"0","fi":"04:45|19:40"},{"fa":"02","fb":"04","fc":"31","fd":"22","fe":"0","ff":"0","fg":"0","fh":"0","fi":"04:45|19:41"},{"fa":"21","fb":"04","fc":"30","fd":"20","fe":"0","ff":"0","fg":"0","fh":"0","fi":"04:45|19:42"}],"f0":"201506081100"}} 以上返回的json数据是什么意思?
130 个相见恨晚的超实用网站,一次性分享出来
文末没有公众号,只求 点赞 + 关注 搞学习 知乎:www.zhihu.com 大学资源网:http://www.dxzy163.com/ 简答题:http://www.jiandati.com/ 网易公开课:https://open.163.com/ted/ 网易云课堂:https://study.163.com/ 中国大学MOOC:www.icourse163.org 网易云课堂:stu
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
win10系统安装教程(U盘PE+UEFI安装)
一、准备工作 u盘,电脑一台,win10原版镜像(msdn官网) 二、下载wepe工具箱  极力推荐微pe(微pe官方下载) 下载64位的win10 pe,使用工具箱制作启动U盘打开软件,   选择安装到U盘(按照操作无需更改) 三、重启进入pe系统   1、关机后,将U盘插入电脑 2、按下电源后,按住F12进入启动项选择(技嘉主板是F12)     选择需要启
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、PDF搜索网站推荐 对于大部
C语言魔塔游戏
很早就很想写这个,今天终于写完了。 游戏截图: 编译环境: VS2017 游戏需要一些图片,如果有想要的或者对游戏有什么看法的可以加我的QQ 2985486630 讨论,如果暂时没有回应,可以在博客下方留言,到时候我会看到。 下面我来介绍一下游戏的主要功能和实现方式 首先是玩家的定义,使用结构体,这个名字是可以自己改变的 struct gamerole { char n
java源码分析 Arrays.asList()与Collections.unmodifiableList()
举个栗子 本章示例代码来自java编程思想——17.4.1未获支持的操作——Unsupported类。 import java.util.*; public class Unsupported { static void test(String msg, List&lt;String&gt; list) { System.out.println("--- " + msg
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
Java学习笔记(七十二)—— Cookie
概述 会话技术: 会话:一次会话中包含多次请求和响应 一次会话:浏览器第一次给服务器发送资源请求,会话建立,直到有一方断开为止 功能:在一次会话的范围内的多次请求间,共享数据 方式: 客户端会话技术:Cookie,把数据存储到客户端 服务器端会话技术:Session,把数据存储到服务器端 Cookie 概念:客户端会话技术,将数据存储到客户端 快速入门: 使用步骤: 创建C
程序员写了一个新手都写不出的低级bug,被骂惨了。
你知道的越多,你不知道的越多 点赞再看,养成习惯 本文 GitHub https://github.com/JavaFamily 已收录,有一线大厂面试点思维导图,也整理了很多我的文档,欢迎Star和完善,大家面试可以参照考点复习,希望我们一起有点东西。 前前言 为啥今天有个前前言呢? 因为你们的丙丙啊,昨天有牌面了哟,直接被微信官方推荐,知乎推荐,也就仅仅是还行吧(心里乐开花)
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
2020年,冯唐49岁:我给20、30岁IT职场年轻人的建议
点击“技术领导力”关注∆  每天早上8:30推送 作者| Mr.K   编辑| Emma 来源| 技术领导力(ID:jishulingdaoli) 前天的推文《冯唐:职场人35岁以后,方法论比经验重要》,收到了不少读者的反馈,觉得挺受启发。其实,冯唐写了不少关于职场方面的文章,都挺不错的。可惜大家只记住了“春风十里不如你”、“如何避免成为油腻腻的中年人”等不那么正经的文章。 本文整理了冯
程序员该看的几部电影
##1、骇客帝国(1999) 概念:在线/离线,递归,循环,矩阵等 剧情简介: 不久的将来,网络黑客尼奥对这个看似正常的现实世界产生了怀疑。 他结识了黑客崔妮蒂,并见到了黑客组织的首领墨菲斯。 墨菲斯告诉他,现实世界其实是由一个名叫“母体”的计算机人工智能系统控制,人们就像他们饲养的动物,没有自由和思想,而尼奥就是能够拯救人类的救世主。 可是,救赎之路从来都不会一帆风顺,到底哪里才是真实的世界?
蓝桥杯知识点汇总:基础知识和常用算法
文章目录JAVA基础语法:算法竞赛常用的JAVA API:基础算法待更: 此系列包含蓝桥杯所考察的绝大部分知识点,一共有基础语法,常用API,基础算法和数据结构,和往年真题四部分,虽然语言以JAVA为主,但算法部分是相通的,C++组的小伙伴也可以看哦。所有文章的链接都会在此公布,还有很多没有更新,会持续更新,如果大佬发现文章有错误的地方请指正,我会十分感谢。另外,有什么问题可私信我~ JAVA基础
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布了 2019年国民经济报告 ,报告中指出:年末中国大陆总人口(包括31个
实现简单的轮播图(单张图片、多张图片)
前言 刚学js没多久,这篇博客就当做记录了,以后还会完善的,希望大佬们多多指点。ps:下面出现的都是直接闪动,没有滑动效果的轮播图。 单张图片的替换 原理 1.将几张图片叠在一起,通过改变"display:block"和"display:none"这两个属性实现替换。 (前提:在css中给所有图片加上display:none属性) 2.不用将图片叠在一起,将一个div当做"窗口",通过"of
强烈推荐10本程序员在家读的书
很遗憾,这个鼠年春节注定是刻骨铭心的,新型冠状病毒让每个人的神经都是紧绷的。那些处在武汉的白衣天使们,尤其值得我们的尊敬。而我们这些窝在家里的程序员,能不外出就不外出,就是对社会做出的最大的贡献。 有些读者私下问我,窝了几天,有点颓丧,能否推荐几本书在家里看看。我花了一天的时间,挑选了 10 本我最喜欢的书,你可以挑选感兴趣的来读一读。读书不仅可以平复恐惧的压力,还可以对未来充满希望,毕竟苦难终
Linux自学篇——linux命令英文全称及解释
man: Manual 意思是手册,可以用这个命令查询其他命令的用法。 pwd:Print working directory 显示当前目录 su:Swith user 切换用户,切换到root用户 cd:Change directory 切换目录 ls:List files 列出目录下的文件 ps:Process Status 进程状态 mk
Python实战:抓肺炎疫情实时数据,画2019-nCoV疫情地图
文章目录1. 前言2. 数据下载3. 数据处理4. 数据可视化 1. 前言 今天,群里白垩老师问如何用python画武汉肺炎疫情地图。白垩老师是研究海洋生态与地球生物的学者,国家重点实验室成员,于不惑之年学习python,实为我等学习楷模。先前我并没有关注武汉肺炎的具体数据,也没有画过类似的数据分布图。于是就拿了两个小时,专门研究了一下,遂成此文。 2月6日追记:本文发布后,腾讯的数据源多次变更u
智力题(程序员面试经典)
NO.1  有20瓶药丸,其中19瓶装有1克/粒的药丸,余下一瓶装有1.1克/粒的药丸。给你一台称重精准的天平,怎么找出比较重的那瓶药丸?天平只能用一次。 解法 有时候,严格的限制条件有可能反倒是解题的线索。在这个问题中,限制条件是天平只能用一次。 因为天平只能用一次,我们也得以知道一个有趣的事实:一次必须同时称很多药丸,其实更准确地说,是必须从19瓶拿出药丸进行称重。否则,如果跳过两瓶或更多瓶药
Java与Python学习通法(1)和(2)序言和编程语言发展史怎么学
大家好,我是 jacky 朱元禄,很高兴跟大家一起学习 《Java与Python学习通法系列》。 首先,说一下,我为什么要录这个课; 我们都已经知道Java 和 Python的视频教程和书籍,可以说是非常非常多了,那我录制本系列课的意义是什么呢? (1)课程特色一:我想告诉大家学习编程语言是有捷径的,这个捷径就是 理解技术背后的“哲学逻辑”,或者说是“人文逻辑”,相信你听完 jack
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
阿里架构师花近十年时间整理出来的Java核心知识pdf(Java岗)
由于细节内容实在太多啦,所以只把部分知识点截图出来粗略的介绍,每个小节点里面都有更细化的内容! 整理了一份Java核心知识点。覆盖了JVM、锁、并发、Java反射、Spring原理、微服务、Zookeeper、数据库、数据结构等大量知识点。       欢迎大家加入java学习交流社区  点击加入   可获取文中文档       小编推荐:     
Python基础知识点梳理
python基础知识点梳理 摘要: 本文主要介绍一些平时经常会用到的python基础知识点,用于加深印象,也算是对于学习这门语言的一个总结与回顾。python的详细语法介绍可以查看官方编程手册,也有一些在线网站对python语法进行了比较全面的介绍,比如菜鸟教程: python3 教程|菜鸟教程 为了方便聚焦知识点,本文涉及的操作实例并不多,想学好一门语言关键还得自己多编码多实践。 python语
2020年2月全国程序员工资统计,平均工资13716元
趋势 2020年2月,中国大陆程序员平均工资13716元,比上个月增加。具体趋势如图: 各主要程序员城市工资变化 城市 北京,上海,深圳,杭州,广州四地的工资最高。 city 平均工资 最低工资 中位数 最高工资 招聘人数 百分比 北京 18098 3750 15000 45000 20529 9.53% 深圳 16903 5750 15000 37500 30941 14
Java坑人面试题系列: 包装类(中级难度)
Java Magazine上面有一个专门坑人的面试题系列: https://blogs.oracle.com/javamagazine/quiz-2。 这些问题的设计宗旨,主要是测试面试者对Java语言的了解程度,而不是为了用弯弯绕绕的手段把面试者搞蒙。 如果你看过往期的问题,就会发现每一个都不简单。 这些试题模拟了认证考试中的一些难题。 而 “中级(intermediate)” 和 “高级(ad
为什么说程序员做外包没前途?
之前做过不到3个月的外包,2020的第一天就被释放了,2019年还剩1天,我从外包公司离职了。我就谈谈我个人的看法吧。首先我们定义一下什么是有前途 稳定的工作环境 不错的收入 能够在项目中不断提升自己的技能(ps:非技术上的认知也算) 找下家的时候能找到一份工资更高的工作 如果你目前还年轻,但高不成低不就,只有外包offer,那请往下看。 外包公司你应该
相关热词 c# 时间比天数 c# oracle查询 c# 主动推送 事件 c# java 属性 c# 控制台 窗体 c# 静态类存值 c#矢量作图 c#窗体调用外部程式 c# enum是否合法 c# 如何卸载引用
立即提问