📄 mmm.lst
字号:
585 3
586 3 }
587 2 /* for(i=1;i<150;i++)
588 2 {
589 2 Watch_dog();
590 2 if (Cmdok) //通讯
591 2 {
592 2 Cmdok = FALSE;
593 2 RecvReady = FALSE;
594 2 SendReady = FALSE;
595 2 cmd_execution();
596 2 SendReady = TRUE ; //发起始字
597 2 TI = 1;
598 2 Test_led=!Test_led;
599 2 Watch_dog();
600 2 }
601 2 Watch_dog();
602 2 ttt=Find(i);
603 2 Watch_dog();
604 2 if(ttt==0)
605 2 {
606 2 ttt=Find(i);
607 2 if(ttt)
608 2 {
C51 COMPILER V7.05 MMM 09/08/2004 21:09:47 PAGE 11
609 2 Watch_dog();
610 2 Card_id[i]=4;//循环监测的次数
611 2 if((i%4)==0)
612 2 {
613 2 if(ttt==0x01)
614 2 {
615 2 uuu=RemainRec[i/64][(i%64)/4];
616 2 uuu=uuu|0x01;
617 2 uuu=uuu&0xfd;
618 2 RemainRec[i/64][(i%64)/4]=uuu;
619 2 }
620 2 if(ttt==0x02)
621 2 {
622 2 uuu=RemainRec[i/64][(i%64)/4];
623 2 uuu=uuu|0x02;
624 2 uuu=uuu&0xfe;
625 2 RemainRec[i/64][(i%64)/4]=uuu;
626 2 }
627 2 }
628 2 if((i%4)==1)
629 2 {
630 2 if(ttt==0x01)
631 2 {
632 2 uuu=RemainRec[i/64][(i%64)/4];
633 2 uuu=uuu|0x04;
634 2 uuu=uuu&0xf7;
635 2 RemainRec[i/64][(i%64)/4]=uuu;
636 2 }
637 2 if(ttt==0x02)
638 2 {
639 2 uuu=RemainRec[i/64][(i%64)/4];
640 2 uuu=uuu|0x08;
641 2 uuu=uuu&0xfb;
642 2 RemainRec[i/64][(i%64)/4]=uuu;
643 2 }
644 2 }
645 2 if((i%4)==2)
646 2 {
647 2 if(ttt==0x01)
648 2 {
649 2 uuu=RemainRec[i/64][(i%64)/4];
650 2 uuu=uuu|0x10;
651 2 uuu=uuu&0xdf;
652 2 RemainRec[i/64][(i%64)/4]=uuu;
653 2 }
654 2 if(ttt==0x02)
655 2 {
656 2 uuu=RemainRec[i/64][(i%64)/4];
657 2 uuu=uuu|0x20;
658 2 uuu=uuu&0xef;
659 2 RemainRec[i/64][(i%64)/4]=uuu;
660 2 }
661 2 }
662 2 if((i%4)==3)
663 2 {
664 2 if(ttt==0x01)
665 2 {
666 2 uuu=RemainRec[i/64][(i%64)/4];
667 2 uuu=uuu|0x40;
668 2 uuu=uuu&0x7f;
669 2 RemainRec[i/64][(i%64)/4]=uuu;
670 2 }
C51 COMPILER V7.05 MMM 09/08/2004 21:09:47 PAGE 12
671 2 if(ttt==0x02)
672 2 {
673 2 uuu=RemainRec[i/64][(i%64)/4];
674 2 uuu=uuu|0x80;
675 2 uuu=uuu&0xbf;
676 2 RemainRec[i/64][(i%64)/4]=uuu;
677 2 }
678 2 }
679 2 Test_led=!Test_led;//在区域
680 2 }
681 2 else //不再区域
682 2 {
683 2 Watch_dog();
684 2 if((i%4)==0)
685 2 {
686 2 uuu=RemainRec[i/64][(i%64)/4];
687 2 if(uuu&0x03) //如果原来就存在
688 2 {
689 2 ttt=Find(i); //再次查找
690 2 if(ttt==0)
691 2 {
692 2 Card_id[i]--;
693 2 if( Card_id[i]==0)
694 2 {
695 2 uuu=uuu&0xfc;
696 2 RemainRec[i/64][(i%64)/4]=uuu;
697 2 }
698 2 }
699 2 }
700 2 else //原来就不在
701 2 {
702 2 if(!Waring) //没有报警信息
703 2 {
704 2 uuu=uuu&0xfc; //清零
705 2 RemainRec[i/64][(i%64)/4]=uuu;
706 2 }
707 2 }
708 2
709 2 }
710 2 if((i%4)==1)
711 2 {
712 2
713 2 uuu=RemainRec[i/64][(i%64)/4];
714 2 if(uuu&0x0c)
715 2 {
716 2 ttt=Find(i); //再次查找
717 2 if(ttt==0)
718 2 { Card_id[i]--;
719 2 if( Card_id[i]==0)
720 2 {
721 2 uuu=uuu&0xf3;
722 2 RemainRec[i/64][(i%64)/4]=uuu;
723 2 }
724 2 }
725 2 }
726 2 else
727 2 {
728 2 if(!Waring) //没有报警信息
729 2 {
730 2 uuu=uuu&0xf3;
731 2 RemainRec[i/64][(i%64)/4]=uuu;
732 2 }
C51 COMPILER V7.05 MMM 09/08/2004 21:09:47 PAGE 13
733 2 }
734 2
735 2 }
736 2 if((i%4)==2)
737 2 {
738 2 Watch_dog();
739 2 uuu=RemainRec[i/64][(i%64)/4];
740 2 if(uuu&0x30)
741 2 {
742 2 ttt=Find(i); //再次查找
743 2 if(ttt==0)
744 2 { Card_id[i]--;
745 2 if( Card_id[i]==0)
746 2 {
747 2 uuu=uuu&0xcf;
748 2 RemainRec[i/64][(i%64)/4]=uuu;
749 2 }
750 2 }
751 2 }
752 2 else
753 2 {
754 2 if(!Waring) //没有报警信息
755 2 {
756 2 uuu=uuu&0xcf;
757 2 RemainRec[i/64][(i%64)/4]=uuu;
758 2 }
759 2 }
760 2 }
761 2 if((i%4)==3)
762 2 {
763 2 Watch_dog();
764 2 uuu=RemainRec[i/64][(i%64)/4];
765 2 if(uuu&0xc0)
766 2 {
767 2 ttt=Find(i); //再次查找
768 2 if(ttt==0)
769 2 { Card_id[i]--;
770 2 if( Card_id[i]==0)
771 2 {
772 2 uuu=uuu&0x3f;
773 2 RemainRec[i/64][(i%64)/4]=uuu;
774 2 }
775 2 }
776 2 }
777 2 else
778 2 {
779 2 if(!Waring) //没有报警信息
780 2 {
781 2 uuu=uuu&0x3f;
782 2 RemainRec[i/64][(i%64)/4]=uuu;
783 2 }
784 2 }
785 2 }
786 2 }
787 2 }
788 2 else
789 2 {
790 2 Watch_dog();
791 2 Card_id[i]=4;//循环监测的次数
792 2 if((i%4)==0)
793 2 {
794 2 if(ttt==0x01)
C51 COMPILER V7.05 MMM 09/08/2004 21:09:47 PAGE 14
795 2 {
796 2 uuu=RemainRec[i/64][(i%64)/4];
797 2 uuu=uuu|0x01;
798 2 uuu=uuu&0xfd;
799 2 RemainRec[i/64][(i%64)/4]=uuu;
800 2 }
801 2 if(ttt==0x02)
802 2 {
803 2 uuu=RemainRec[i/64][(i%64)/4];
804 2 uuu=uuu|0x02;
805 2 uuu=uuu&0xfe;
806 2 RemainRec[i/64][(i%64)/4]=uuu;
807 2 }
808 2 }
809 2 if((i%4)==1)
810 2 {
811 2 if(ttt==0x01)
812 2 {
813 2 uuu=RemainRec[i/64][(i%64)/4];
814 2 uuu=uuu|0x04;
815 2 uuu=uuu&0xf7;
816 2 RemainRec[i/64][(i%64)/4]=uuu;
817 2 }
818 2 if(ttt==0x02)
819 2 {
820 2 uuu=RemainRec[i/64][(i%64)/4];
821 2 uuu=uuu|0x08;
822 2 uuu=uuu&0xfb;
823 2 RemainRec[i/64][(i%64)/4]=uuu;
824 2 }
825 2 }
826 2 if((i%4)==2)
827 2 {
828 2 if(ttt==0x01)
829 2 {
830 2 uuu=RemainRec[i/64][(i%64)/4];
831 2 uuu=uuu|0x10;
832 2 uuu=uuu&0xdf;
833 2 RemainRec[i/64][(i%64)/4]=uuu;
834 2 }
835 2 if(ttt==0x02)
836 2 {
837 2 uuu=RemainRec[i/64][(i%64)/4];
838 2 uuu=uuu|0x20;
839 2 uuu=uuu&0xef;
840 2 RemainRec[i/64][(i%64)/4]=uuu;
841 2 }
842 2 }
843 2 if((i%4)==3)
844 2 {
845 2 if(ttt==0x01)
846 2 {
847 2 uuu=RemainRec[i/64][(i%64)/4];
848 2 uuu=uuu|0x40;
849 2 uuu=uuu&0x7f;
850 2 RemainRec[i/64][(i%64)/4]=uuu;
851 2 }
852 2 if(ttt==0x02)
853 2 {
854 2 uuu=RemainRec[i/64][(i%64)/4];
855 2 uuu=uuu|0x80;
856 2 uuu=uuu&0xbf;
C51 COMPILER V7.05 MMM 09/08/2004 21:09:47 PAGE 15
857 2 RemainRec[i/64][(i%64)/4]=uuu;
858 2 }
859 2 }
860 2 Test_led=!Test_led;
861 2 Watch_dog();
862 2 }
863 2 }*/
864 2 }
865 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 1256 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = 299 ----
PDATA SIZE = ---- ----
DATA SIZE = 26 9
IDATA SIZE = 3 6
BIT SIZE = 9 ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -