📄 main.c.lst
字号:
578 1 if((state==1)&&(page==1)&&(runfirst==0))
579 1 { cleardisp();
580 2 interfaceRun();
581 2 runfirst=1;
582 2
583 2 }
584 1 if(((state==0)&&(stopfirst))||((state==1)&&(runfirst)))
585 1 {
586 2 if((key_tag==1)&&(key_code1==0)&&(key_code2==PRG)&&(key_code3==0)&&((page==0)||(page==1)))
587 2 {
588 3 key_code2=0;
589 3 key_tag=0;
590 3 Mcount=1;
591 3 page=2;
592 3 back=0;
593 3 time=0;
594 3 changepage(1,2,1);
595 3
596 3
597 3 }
598 2 if((key_tag)&&(key_code2=UP)&&(key_code3==0)&&(key_code1==0)&&(Mcount>0)&&(Mcount<=9)&&(page==2))
599 2 {
600 3 back=0;
601 3 time=0;
602 3 key_code2=0;
603 3 key_tag=0;
604 3 if((Mcount%4)==0)
605 3 {
606 4 subb=Mcount/4;
607 4 subb+=1;
608 4 changepage(subb,2,1);
609 4 Mcount+=1;
610 4 }
611 3 else if(((Mcount%4)!=0)&&(Mcount!=9))
C51 COMPILER V7.06 MAIN_C 06/13/2003 10:55:13 PAGE 11
612 3 {
613 4 Mcount+=1;
614 4 movepin+=2;
615 4 fingermove(movepin,1,1);
616 4 }
617 3
618 3 }
619 2 if((key_tag)&&(key_code3==DOWN)&&(key_code2==0)&&(key_code1==0)&&(Mcount>0)&&(Mcount<10)&&(page==2))
620 2 {
621 3 back=0;
622 3 time=0;
623 3 key_code3=0;
624 3 key_tag=0;
625 3 subb=Mcount-1;
626 3 if((subb!=0)&&((subb%4)==0))
627 3 {
628 4 subb=subb/4;
629 4 changepage(subb,2,0);
630 4 Mcount-=1;
631 4 }
632 3 else if((((Mcount-1)%4)!=0)&&(Mcount!=1))
633 3 {
634 4 Mcount-=1;
635 4 movepin-=2;
636 4 fingermove(movepin,0,1);
637 4 }
638 3 }
639 2 if((key_tag)&&(key_code1==FUNC)&&(key_code2==0)&&(key_code3==0)&&(Mcount>0)&&(Mcount<10)&&(page==2))
640 2 { key_code1=0;
641 3 key_tag=0;
642 3 back=0;
643 3 time=0;
644 3 page=3;
645 3 Fcount=0;
646 3 Hcount=0;
647 3 Ecount=0;
648 3 Pcount=0;
649 3 Ucount=0;
650 3 Ccount=0;
651 3 vindicatecount=0;
652 3 IOcount=0;
653 3 runcount=0;
654 3 return(Mcount);
655 3 }
656 2 if((((key_code1==0)&&(key_code2==PRG)&&(key_code3==0))||((key_code1==RESET)&&(key_code2==0)&&(key_code3
-==0)))&&(page==2)&&(key_tag))
657 2 {
658 3 key_tag=0;
659 3 key_code2=0;
660 3 if(state==0)
661 3 {
662 4 page=0;
663 4 stopfirst=0;
664 4 Mcount=0;
665 4 }
666 3 if(state==1)
667 3 {
668 4 page=1;
669 4 runfirst=0;
670 4 Mcount=0;
671 4 }
672 3 }
C51 COMPILER V7.06 MAIN_C 06/13/2003 10:55:13 PAGE 12
673 2 }
674 1 return 0;
675 1 }
676 /************************************
677 基本功能1屏
678 ************************************/
679 void screen1(void)
680 {
681 1 combinline(5,23,23,6,42,43,44,45,0,0);
682 1 DispPage2(fingersbuf,0,16,8,2);
683 1 combinline(5,23,24,6,46,47,77,78,24,0);
684 1 DispPage2(fingersbuf,2,16,9,2);
685 1 combinline(5,23,25,6,116,117,173,170,0,0);
686 1 DispPage2(fingersbuf,4,16,8,2);
687 1 combinline(5,23,26,6,48,49,46,47,24,0);
688 1 DispPage2(fingersbuf,6,16,9,2);
689 1 }
690 /************************************
691 基本功能2屏
692 ************************************/
693 void screen2(void)
694 {
695 1 combinline(5,23,27,6,50,51,46,47,24,0);
696 1 DispPage2(fingersbuf,0,16,9,2);
697 1 combinline(5,23,28,6,54,123,52,53,24,0);
698 1 DispPage2(fingersbuf,2,16,9,2);
699 1 combinline(5,23,29,6,48,49,52,53,24,0);
700 1 DispPage2(fingersbuf,4,16,9,2);
701 1 combinline(5,23,30,6,55,56,57,58,24,0);
702 1 DispPage2(fingersbuf,6,16,9,2);
703 1 }
704 /*****************************
705 screen 3
706 ******************************/
707 void screen3(void)
708 {
709 1 combinline(5,23,31,6,147,56,57,58,24,0);
710 1 DispPage2(fingersbuf,0,16,9,2);
711 1 combinline(5,23,32,6,62,63,64,65,24,0);
712 1 DispPage2(fingersbuf,2,16,9,2);
713 1 combinline(5,24,23,6,59,60,52,61,24,0);
714 1 DispPage2(fingersbuf,4,16,9,2);
715 1 combinline(5,24,24,6,12,9,77,78,80,24);
716 1 DispPage2(fingersbuf,6,16,10,2);
717 1 }
718 /*********************************
719 screen 4
720 ********************************/
721 void screen4(void)
722 {
723 1 combinline(5,24,25,6,59,78,42,20,24,0);
724 1 DispPage2(fingersbuf,0,16,9,2);
725 1 combinline(5,24,26,6,3,1,52,85,12,9);
726 1 DispPage2(fingersbuf,2,16,10,2);
727 1 combinline(5,24,27,6,81,66,67,0,0,0);
728 1 DispPage2(fingersbuf,4,16,7,2);
729 1 combinline(5,24,28,6,83,82,46,47,0,0);
730 1 DispPage2(fingersbuf,6,16,8,2);
731 1 }
732
733 /*******************************
734 screen 5
C51 COMPILER V7.06 MAIN_C 06/13/2003 10:55:13 PAGE 13
735 ********************************/
736 void screen5(void)
737 {
738 1 combinline(5,24,29,6,84,82,46,47,0,0);
739 1 DispPage2(fingersbuf,0,16,8,2);
740 1 combinline(5,24,30,6,77,78,86,87,0,0);
741 1 DispPage2(fingersbuf,2,16,8,2);
742 1 combinline(5,24,31,6,46,47,88,89,0,0);
743 1 DispPage2(fingersbuf,4,16,8,2);
744 1 combinline(5,25,23,6,3,2,91,67,7,22);
745 1 DispPage2(fingersbuf,6,16,10,2);
746 1 }
747 /************************************
748 screen 6
749 **********************************/
750 void screen6(void)
751 {
752 1 combinline(5,25,24,6,3,2,91,67,80,0);
753 1 DispPage2(fingersbuf,0,16,9,2);
754 1 combinline(5,25,25,6,3,2,91,67,20,0);
755 1 DispPage2(fingersbuf,2,16,9,2);
756 1 combinline(5,25,26,6,66,67,46,47,0,0);
757 1 DispPage2(fingersbuf,4,16,8,2);
758 1 combinline(5,25,27,6,44,92,57,58,0,0);
759 1 DispPage2(fingersbuf,6,16,8,2);
760 1 }
761 /********************************8
762 screen 7
763 *********************************/
764 void screen7(void)
765 {
766 1 combinline(5,25,28,6,68,69,46,47,0,0);
767 1 DispPage2(fingersbuf,0,16,8,2);
768 1 combinline(5,25,29,6,73,74,46,47,0,0);
769 1 DispPage2(fingersbuf,2,16,8,2);
770 1 combinline(5,25,30,6,52,70,71,72,0,0);
771 1 DispPage2(fingersbuf,4,16,8,2);
772 1 combinline(5,26,23,6,5,10,0,52,53,0);
773 1 DispPage2(fingersbuf,6,16,9,2);
774 1 }
775 /*****************************88
776 screen 8
777 *******************************/
778 void screen8(void)
779 {
780 1 combinline(5,26,24,6,5,10,0,0,9,2);
781 1 DispPage2(fingersbuf,0,16,10,2);
782 1 combinline(4,0,0,0,0,0,0,0,0,0);
783 1 DispPage2(fingersbuf,0,96,1,2);
784 1 combinline(5,26,26,6,5,10,0,97,98,47);
785 1 DispPage2(fingersbuf,2,16,10,2);
786 1 combinline(5,26,27,6,5,10,13,52,53,0);
787 1 DispPage2(fingersbuf,4,16,9,2);
788 1 combinline(5,26,28,6,5,10,13,75,76,0);
789 1 DispPage2(fingersbuf,6,16,9,2);
790 1 }
791 /***********************************
792 screen 9
793 ************************************/
794 void screen9(void)
795 {
796 1 combinline(5,26,29,6,26,23,11,19,99,100);
C51 COMPILER V7.06 MAIN_C 06/13/2003 10:55:13 PAGE 14
797 1 DispPage2(fingersbuf,0,16,10,2);
798 1 combinline(5,27,23,6,101,67,62,63,24,0);
799 1 DispPage2(fingersbuf,2,16,9,2);
800 1 combinline(5,27,24,6,92,67,62,63,24,0);
801 1 DispPage2(fingersbuf,4,16,9,2);
802 1 combinline(5,27,25,6,62,63,102,103,24,0);
803 1 DispPage2(fingersbuf,6,16,9,2);
804 1 }
805 /*****************************8
806 screen 10
807 ******************************/
808 void screen10(void)
809 {
810 1 combinline(4,23,24,6,18,24,33,75,76,0);
811 1 DispPage2(fingersbuf,0,16,9,2);
812 1 combinline(4,23,25,6,18,25,33,75,76,0);
813 1 DispPage2(fingersbuf,2,16,9,2);
814 1 combinline(4,23,26,6,18,26,33,75,76,0);
815 1 DispPage2(fingersbuf,4,16,9,2);
816 1 combinline(4,23,27,6,18,27,33,75,76,0);
817 1 DispPage2(fingersbuf,6,16,9,2);
818 1 }
819 /******************************
820 screen 11
821 ******************************/
822 void screen11(void)
823 {
824 1 combinline(4,23,28,6,18,28,33,75,76,0);
825 1 DispPage2(fingersbuf,0,16,9,2);
826 1 combinline(4,23,29,6,18,29,33,75,76,0);
827 1 DispPage2(fingersbuf,2,16,9,2);
828 1 combinline(4,23,30,6,18,30,33,75,76,0);
829 1 DispPage2(fingersbuf,4,16,9,2);
830 1 combinline(4,23,31,6,18,31,33,75,76,0);
831 1 DispPage2(fingersbuf,6,16,9,2);
832 1 }
833 /*************************************8
834 screen 12
835 **********************************/
836 void screen12(void)
837 {
838 1 combinline(4,23,32,6,18,32,33,75,76,0);
839 1 DispPage2(fingersbuf,0,16,9,2);
840 1 combinline(4,24,23,6,55,56,57,58,25,0);
841 1 DispPage2(fingersbuf,2,16,9,2);
842 1 combinline(4,24,24,6,147,56,57,58,25,0);
843 1 DispPage2(fingersbuf,4,16,9,2);
844 1 combinline(4,24,25,6,55,56,57,58,26,0);
845 1 DispPage2(fingersbuf,6,16,9,2);
846 1 }
847 /**************************************
848 screen 13
849 *************************************/
850 void screen13(void)
851 {
852 1 combinline(4,24,26,6,147,56,57,58,26,0);
853 1 DispPage2(fingersbuf,0,16,9,2);
854 1 combinline(4,24,27,6,55,56,57,58,27,0);
855 1 DispPage2(fingersbuf,2,16,9,2);
856 1 combinline(4,24,28,6,147,56,57,58,27,0);
857 1 DispPage2(fingersbuf,4,16,9,2);
858 1 combinline(4,24,29,6,101,67,62,63,25,0);
C51 COMPILER V7.06 MAIN_C 06/13/2003 10:55:13 PAGE 15
859 1 DispPage2(fingersbuf,6,16,9,2);
860 1 }
861 /***************************************
862 screen 14
863 **************************************/
864 void screen14(void)
865 {
866 1 combinline(4,24,30,6,91,67,62,63,25,0);
867 1 DispPage2(fingersbuf,0,16,9,2);
868 1 combinline(4,25,23,6,19,24,33,75,76,0);
869 1 DispPage2(fingersbuf,2,16,9,2);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -