⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c.lst

📁 包括ARM开发环境的使用和一些调试用的源程序
💻 LST
📖 第 1 页 / 共 5 页
字号:
1165          void screen33(void)
1166          {
1167   1         combinline(7,24,32,6,155,57,55,56,0,0);
1168   1         DispPage2(fingersbuf,0,16,8,2);
C51 COMPILER V7.06   MAIN_C                                                                06/13/2003 10:55:13 PAGE 20  

1169   1         combinline(7,25,23,6,13,8,3,99,100,0);
1170   1         DispPage2(fingersbuf,2,16,9,2);
1171   1         combinline(7,25,24,6,143,154,156,157,0,0);
1172   1         DispPage2(fingersbuf,4,16,8,2);
1173   1         combinline(7,25,25,6,13,86,87,0,0,0);
1174   1         DispPage2(fingersbuf,6,16,7,2);
1175   1      }
1176          /**********************************
1177          screen 34
1178          **********************************/
1179          void screen34(void)
1180          {
1181   1         combinline(7,25,26,6,149,151,57,58,0,0);
1182   1         DispPage2(fingersbuf,0,16,8,2);
1183   1         combinline(7,25,27,6,150,151,57,58,0,0);
1184   1         DispPage2(fingersbuf,2,16,8,2);
1185   1         combinline(7,25,28,6,143,154,159,74,0,0);
1186   1         DispPage2(fingersbuf,4,16,8,2);
1187   1         combinline(7,25,29,6,13,14,2,99,100,0);
1188   1         DispPage2(fingersbuf,6,16,9,2);
1189   1      }
1190          
1191          /****************************
1192          screen 35
1193          ******************************/
1194          void screen35(void)
1195          {
1196   1         combinline(7,25,30,6,13,14,2,67,170,80);
1197   1         DispPage2(fingersbuf,0,16,10,2);
1198   1         combinline(7,25,31,6,84,168,141,91,0,0);
1199   1         DispPage2(fingersbuf,2,16,8,2);
1200   1         combinline(7,26,23,6,161,160,75,76,0,0);
1201   1         DispPage2(fingersbuf,4,16,8,2);
1202   1         combinline(21,23,24,6,171,172,33,23,24,0);
1203   1         DispPage2(fingersbuf,6,16,9,2);
1204   1      }
1205          /*******************************8
1206          screen 36
1207          ***********************************/
1208          void screen36(void)
1209          {
1210   1         combinline(21,23,25,6,171,172,33,23,25,0);
1211   1         DispPage2(fingersbuf,0,16,9,2);
1212   1         combinline(21,23,26,6,171,172,33,23,26,0);
1213   1         DispPage2(fingersbuf,2,16,9,2);
1214   1         combinline(21,23,27,6,171,172,33,23,27,0);
1215   1         DispPage2(fingersbuf,4,16,9,2);
1216   1         combinline(21,23,28,6,171,172,33,23,28,0);
1217   1         DispPage2(fingersbuf,6,16,9,2);
1218   1      }
1219          /***********************************
1220          screen 37
1221          ********************************/
1222          void screen37(void)
1223          {
1224   1         combinline(21,23,31,6,171,172,33,23,31,0);
1225   1         DispPage2(fingersbuf,0,16,9,2);
1226   1         combinline(21,23,32,6,171,172,33,23,32,0);
1227   1         DispPage2(fingersbuf,2,16,9,2);
1228   1         combinline(21,24,23,6,171,172,33,24,23,0);
1229   1         DispPage2(fingersbuf,4,16,9,2);
1230   1         combinline(21,24,24,6,171,172,33,24,24,0);
C51 COMPILER V7.06   MAIN_C                                                                06/13/2003 10:55:13 PAGE 21  

1231   1         DispPage2(fingersbuf,6,16,9,2);
1232   1      }
1233          /*************************************
1234          screen 38
1235          ************************************/
1236          void screen38(void)
1237          {
1238   1         combinline(21,24,26,6,171,172,33,24,26,0);
1239   1         DispPage2(fingersbuf,0,16,9,2);
1240   1         combinline(21,24,28,6,171,172,33,24,28,0);
1241   1         DispPage2(fingersbuf,2,16,9,2);
1242   1         combinline(21,25,26,6,171,172,33,25,26,0);
1243   1         DispPage2(fingersbuf,4,16,9,2);
1244   1         combinline(21,25,27,6,171,172,33,24,27,0);
1245   1         DispPage2(fingersbuf,6,16,9,2);
1246   1      }
1247          /**********************************
1248          screen 39
1249          ***********************************/
1250          void screen39(void)
1251          {
1252   1         combinline(21,27,31,6,171,172,33,27,31,0);
1253   1         DispPage2(fingersbuf,0,16,9,2);
1254   1         combinline(21,27,32,6,171,172,33,27,32,0);
1255   1         DispPage2(fingersbuf,2,16,9,2);
1256   1         combinline(21,28,29,6,171,172,33,28,29,0);
1257   1         DispPage2(fingersbuf,4,16,9,2);
1258   1         combinline(21,28,30,6,171,172,33,28,30,0);
1259   1         DispPage2(fingersbuf,6,16,9,2);
1260   1      }
1261          /****************************
1262          screen 40
1263          ******************************/
1264          void screen40(void)
1265          {
1266   1         combinline(21,28,31,6,171,172,33,28,31,0);
1267   1         DispPage2(fingersbuf,0,16,9,2);
1268   1         combinline(21,28,32,6,171,172,33,28,32,0);
1269   1         DispPage2(fingersbuf,2,16,9,2);
1270   1         combinline(21,29,23,6,171,172,33,29,23,0);
1271   1         DispPage2(fingersbuf,4,16,9,2);
1272   1         combinline(21,29,24,6,171,172,33,29,24,0);
1273   1         DispPage2(fingersbuf,6,16,9,2);
1274   1      }
1275          /************************************
1276          menu 1
1277          **************************************/
1278          void menu1(void)
1279          {
1280   1         combinline(24,34,42,43,77,78,0,0,0,0);
1281   1         DispPage2(fingersbuf,0,16,6,2);
1282   1         combinline(25,34,42,43,175,176,0,0,0,0);
1283   1         DispPage2(fingersbuf,2,16,6,2);
1284   1         combinline(26,34,116,117,183,184,0,0,0,0);
1285   1         DispPage2(fingersbuf,4,16,6,2);
1286   1         combinline(27,34,8,35,12,177,180,0,0,0);
1287   1         DispPage2(fingersbuf,6,16,7,2);
1288   1      }
1289          /***********************************
1290          menu 2
1291          ***********************************/
1292          void menu2(void)
C51 COMPILER V7.06   MAIN_C                                                                06/13/2003 10:55:13 PAGE 22  

1293          {
1294   1         combinline(28,34,185,186,152,178,0,0,0,0);
1295   1         DispPage2(fingersbuf,0,0,6,2);
1296   1         combinline(29,34,179,73,47,0,0,0,0,0);
1297   1         DispPage2(fingersbuf,2,16,5,2);
1298   1         combinline(30,34,93,95,152,178,0,0,0,0);
1299   1         DispPage2(fingersbuf,4,16,6,2);
1300   1         combinline(31,34,93,95,181,182,0,0,0,0);
1301   1         DispPage2(fingersbuf,6,16,6,2);
1302   1      }  
1303          /***********************************
1304          menu 3
1305          ************************************/
1306          void menu3(void)
1307          {
1308   1         combinline(32,34,42,43,134,188,0,0,0,0);
1309   1         DispPage2(fingersbuf,0,0,6,2);
1310   1      }
1311          /***********************************
1312          换页显示 floorcode=3为数据处理层,floorcode=2为菜单层,
1313          updown=0 for down,updown=1 or up
1314          *********************************/
1315          void changepage(uchar pagecode,uchar floorcode,bit updown)
1316          {
1317   1         cleardisp();
1318   1         if(floorcode==3)
1319   1         {
1320   2            switch(pagecode)
1321   2            {
1322   3               case 1:  screen1();  break;
1323   3               case 2:  screen2();  break;
1324   3               case 3:  screen3();  break;
1325   3               case 4:  screen4();  break;
1326   3               case 5:  screen5();  break;
1327   3               case 6:  screen6();  break;
1328   3               case 7:  screen7();  break;
1329   3               case 8:  screen8();  break;
1330   3               case 9:  screen9();  break;
1331   3               case 10: screen10(); break;
1332   3               case 11: screen11(); break;
1333   3               case 12: screen12(); break;
1334   3               case 13: screen13(); break;
1335   3               case 14: screen14(); break;
1336   3               case 15: screen15(); break;
1337   3               case 16: screen16(); break;
1338   3               case 17: screen17(); break;
1339   3               case 18: screen18(); break;
1340   3               case 19: screen19(); break;
1341   3               case 20: screen20(); break;
1342   3               case 21: screen21(); break;
1343   3               case 22: screen22(); break;
1344   3               case 23: screen23(); break;
1345   3               case 24: screen24(); break;
1346   3               case 25: screen25(); break;
1347   3               case 26: screen26(); break;
1348   3               case 27: screen27(); break;
1349   3               case 28: screen28(); break;
1350   3               case 29: screen29(); break;
1351   3               case 30: screen30(); break;
1352   3               case 31: screen31(); break;
1353   3               case 32: screen32(); break;
1354   3               case 33: screen33(); break;
C51 COMPILER V7.06   MAIN_C                                                                06/13/2003 10:55:13 PAGE 23  

1355   3               case 34: screen34(); break;
1356   3               case 35: screen35(); break;
1357   3               case 36: screen36(); break;
1358   3               case 37: screen37(); break;
1359   3               case 38: screen38(); break;
1360   3               case 39: screen39(); break;
1361   3               case 40: screen40(); break;
1362   3               default :   break;
1363   3            }
1364   2         }  
1365   1         if(floorcode==2)
1366   1         {
1367   2            switch(pagecode)
1368   2            {
1369   3               case 1:  menu1(); break;
1370   3               case 2:  menu2(); break;
1371   3               case 3:  menu3(); break;
1372   3               default: break;
1373   3            }
1374   2         }
1375   1         if(updown)
1376   1         {
1377   2            movepin=0;
1378   2            fingermove(0,0,0);
1379   2         }
1380   1         if(updown==0)
1381   1         {
1382   2            movepin=6;
1383   2            fingermove(6,0,0);
1384   2         }
1385   1      }  
1386          
1387          /*********************************************
1388          finger add
1389          ***********************************************/
1390          void addfinger(bit flag)
1391          {
1392   1         if(flag)
1393   1         {
1394   2            if((Fcount<FSUM)&&(Ecount==0)&&(Ccount==0)&&(Pcount==0)&&(Hcount==0)&&(Ucount==0))
1395   2                        Fcount++;
1396   2            else if((Ecount<ESUM)&&(FSUM==Fcount)&&(Pcount==0)&&(Hcount==0)&&(Ccount==0)&&(Ucount==0))
1397   2                        Ecount++;
1398   2            else if((Ccount<CSUM)&&(FSUM==Fcount)&&(Pcount==0)&&(Hcount==0)&&(Ecount==ESUM)&&(Ucount==0))
1399   2                        Ccount++;
1400   2            else if((Pcount<PSUM)&&(FSUM==Fcount)&&(Ecount==ESUM)&&(Hcount==0)&&(Ccount==CSUM)&&(Ucount==0))
1401   2                        Pcount++;
1402   2            else if((Hcount<HSUM)&&(FSUM==Fcount)&&(Pcount==PSUM)&&(Ecount==ESUM)&&(Ccount==CSUM)&&(Ucount==0))
1403   2                        Hcount++;
1404   2            else if((Ucount<USUM)&&(FSUM==Fcount)&&(Pcount==PSUM)&&(Hcount==HSUM)&&(Ccount==CSUM)&&(Ecount==ESUM))
1405   2                     Ucount++;
1406   2         }
1407   1         else 
1408   1         {
1409   2            if((Fcount<=FSUM)&&(Ecount==0)&&(Pcount==0)&&(Hcount==0)&&(Ccount==0)&&(Ucount==0))
1410   2                  Fcount--;
1411   2            else if((Fcount==FSUM)&&(Ecount<=ESUM)&&(Pcount==0)&&(Hcount==0)&&(Ccount==0)&&(Ucount==0))
1412   2                  Ecount--;
1413   2            else if((Fcount==FSUM)&&(Ecount=ESUM)&&(Pcount==0)&&(Hcount==0)&&(Ccount<=CSUM)&&(Ucount==0))
1414   2                  Ccount--;
1415   2            else if((Fcount==FSUM)&&(Ecount==ESUM)&&(Pcount<=PSUM)&&(Hcount==0)&&(Ccount==CSUM)&&(Ucount==0))
1416   2                  Pcount--;
C51 COMPILER V7.06   MAIN_C                                                                06/13/2003 10:55:13 PAGE 24  

1417   2            else if((Fcount==FSUM)&&(Ecount==ESUM)&&(Pcount==PSUM)&&(Hcount<=HSUM)&&(Ccount==CSUM)&&(Ucount==0))
1418   2                  Hcount--;
1419   2            else if((Fcount==FSUM)&&(Ecount==ESUM)&&(Pcount==PSUM)&&(Hcount==HSUM)&&(Ccount==CSUM)&&(Ucount<=USUM))
1420   2                  Ucount--;
1421   2         }
1422   1      }
1423          
1424          
1425          /************************************
1426          1.数据设定
1427          ************************************/
1428          
1429          
1430          uchar itemcode;
1431          uchar FECPHU;
1432          uchar advance;
1433          uchar item1(void)
1434          {
1435   1         uchar sub;
1436   1         uchar summon;
1437   1         if((page==3)&&(itemcode==1))//进入分项中
1438   1         {
1439   2            if((Fcount==0))
1440   2            {     
1441   3                  Fcount=1;
1442   3                  changepage(1,3,1);
1443   3                  Mcount=0;
1444   3            }
1445   2            if((key_code2==UP)&&(key_code1==0)&&(key_code3==0)&&(Ucount<=USUM)&&(Fcount>0))
1446   2            {
1447   3               key_code2=0;
1448   3               back=0;
1449   3               time=0;
1450   3               summon=Fcount+Ecount+Pcount+Ccount+Hcount+Ucount;
1451   3               if(((summon%4)==0)&&(Ucount!=USUM))
1452   3               {
1453   4                     sub=summon/4;
1454   4                     sub+=1;
1455   4                     changepage(sub,3,1);
1456   4                     addfinger(1);
145

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -