meun.LST
上传用户:nbddcb
上传日期:2022-05-19
资源大小:48k
文件大小:8k
- C51 COMPILER V7.50 MEUN 04/08/2010 15:43:33 PAGE 1
- C51 COMPILER V7.50, COMPILATION OF MODULE MEUN
- OBJECT MODULE PLACED IN meun.OBJ
- COMPILER INVOKED BY: C:KeilC51BINC51.EXE meun.c BROWSE DEBUG OBJECTEXTEND
- line level source
- 1 #include "meun.h"
- 2 #include "demo.h"
- 3 void (*KeyFuncPtr)();
- 4 uchar KeyFuncIndex = 0;
- 5 KbdTabStruct code KeyTab[SIZE_OF_KEYBD_MENU]=
- 6 {
- 7 { 0, 4, 6, 1,(*func0)},
- 8 { 1, 2, 3, 0,(*func1)},
- 9 { 2, 3, 1, 0,(*func2)},
- 10 { 3, 1, 2, 0,(*func3)},
- 11 { 4, 6, 0, 5,(*func4)},
- 12 { 5, 7, 7, 4,(*func5)},
- 13 { 6, 0, 4, 8,(*func6)},
- 14 { 7, 5, 5, 4,(*func7)},
- 15 { 8, 9, 9, 6,(*func8)},
- 16 { 9, 8, 8, 6,(*func9)}
- 17 };
- 18
- 19 void delay(unsigned int i)
- 20 {
- 21 1 unsigned int j;
- 22 1 for(j=6000;j>0;j--)
- 23 1 for(;i>0;i--);
- 24 1 }
- 25
- 26 void func0(void)
- 27 {
- 28 1 int i;
- 29 1 MB90092_DisChar(1,2,0x0c,0,1,4,1);
- 30 1 for (i=0;i<5;i++)
- 31 1 MB90092_DisChar(i+3,2,0x00+i,0,1,4,1);
- 32 1 for (i=0;i<5;i++)
- 33 1 MB90092_DisChar(i+3,3,0x05+i,0,1,4,1);
- 34 1 for (i=0;i<5;i++)
- 35 1 MB90092_DisChar(i+3,4,0x41+i,0,1,4,1);
- 36 1 }
- 37
- 38 void func1(void)
- 39 {
- 40 1 int i;
- 41 1 MB90092_DisChar(1,2,0x0c,0,1,4,1);
- 42 1 for (i=0;i<3;i++)
- 43 1 MB90092_DisChar(i+3,2,0x180+i,0,1,4,1);
- 44 1 for (i=0;i<2;i++)
- 45 1 MB90092_DisChar(i+3,3,0xB6+i,0,1,4,1);
- 46 1 MB90092_DisChar(3,4,0x0b,0,1,4,1);
- 47 1 }
- 48
- 49 void func2(void)
- 50 {
- 51 1 int i;
- 52 1 MB90092_DisChar(1,3,0x0c,0,1,4,1);
- 53 1 for (i=0;i<3;i++)
- 54 1 MB90092_DisChar(i+3,2,0x180+i,0,1,4,1);
- 55 1 for (i=0;i<2;i++)
- C51 COMPILER V7.50 MEUN 04/08/2010 15:43:33 PAGE 2
- 56 1 MB90092_DisChar(i+3,3,0xB6+i,0,1,4,1);
- 57 1 MB90092_DisChar(3,4,0x0b,0,1,4,1);
- 58 1 }
- 59
- 60 void func3(void)
- 61 {
- 62 1 int i;
- 63 1 MB90092_DisChar(1,4,0x0c,0,1,4,1);
- 64 1 for (i=0;i<3;i++)
- 65 1 MB90092_DisChar(i+3,2,0x180+i,0,1,4,1);
- 66 1 for (i=0;i<2;i++)
- 67 1 MB90092_DisChar(i+3,3,0xB6+i,0,1,4,1);
- 68 1 MB90092_DisChar(3,4,0x0b,0,1,4,1);
- 69 1 }
- 70
- 71 void func4(void)
- 72 {
- 73 1 int i;
- 74 1 MB90092_DisChar(1,3,0x0c,0,1,4,1);
- 75 1 for (i=0;i<5;i++)
- 76 1 MB90092_DisChar(i+3,2,0x00+i,0,1,4,1);
- 77 1 for (i=0;i<5;i++)
- 78 1 MB90092_DisChar(i+3,3,0x05+i,0,1,4,1);
- 79 1 for (i=0;i<5;i++)
- 80 1 MB90092_DisChar(i+3,4,0x41+i,0,1,4,1);
- 81 1 }
- 82
- 83 void func5(void)
- 84 {
- 85 1 int i;
- 86 1 MB90092_DisChar(1,2,0x0c,0,1,4,1);
- 87 1 for (i=1;i<10;i=i+2)
- 88 1 MB90092_DisChar(i+3,2,0x00+i,0,1,4,1);
- 89 1 MB90092_DisChar(3,3,0x0b,0,1,4,1);
- 90 1 }
- 91
- 92 void func6(void)
- 93 {
- 94 1 int i;
- 95 1 MB90092_DisChar(1,4,0x0c,0,1,4,1);
- 96 1 for (i=0;i<5;i++)
- 97 1 MB90092_DisChar(i+3,2,0x00+i,0,1,4,1);
- 98 1 for (i=0;i<5;i++)
- 99 1 MB90092_DisChar(i+3,3,0x05+i,0,1,4,1);
- 100 1 for (i=0;i<5;i++)
- 101 1 MB90092_DisChar(i+3,4,0x41+i,0,1,4,1);
- 102 1 }
- 103
- 104 void func7(void)
- 105 {
- 106 1 int i;
- 107 1 MB90092_DisChar(1,3,0x0c,0,1,4,1);
- 108 1 for (i=1;i<10;i=i+2)
- 109 1 MB90092_DisChar(i+3,2,0x00+i,0,1,4,1);
- 110 1 MB90092_DisChar(3,3,0x0b,0,1,4,1);
- 111 1 }
- 112
- 113 void func8(void)
- 114 {
- 115 1 int i;
- 116 1 MB90092_DisChar(1,2,0x0c,0,1,4,1);
- 117 1 for (i=0;i<10;i=i+2)
- C51 COMPILER V7.50 MEUN 04/08/2010 15:43:33 PAGE 3
- 118 1 MB90092_DisChar(i+3,2,0x00+i,0,1,4,1);
- 119 1 MB90092_DisChar(3,3,0x0b,0,1,4,1);
- 120 1 }
- 121
- 122 void func9(void)
- 123 {
- 124 1 int i;
- 125 1 MB90092_DisChar(1,3,0x0c,0,1,4,1);
- 126 1 for (i=0;i<10;i=i+2)
- 127 1 MB90092_DisChar(i+3,2,0x00+i,0,1,4,1);
- 128 1 MB90092_DisChar(3,3,0x0b,0,1,4,1);
- 129 1 }
- 130
- 131
- 132
- 133 void GetKeyInput(void)
- 134 {
- 135 1
- 136 1 if(EXT==0)
- 137 1 { delay(1);
- 138 2 if(EXT==0)
- 139 2 {
- 140 3 while (EXT==0);
- 141 3 MB90092_ClearXY (1,2);
- 142 3 MB90092_ClearXY (1,3);
- 143 3 MB90092_ClearXY (1,4);
- 144 3 KeyFuncIndex=KeyTab[KeyFuncIndex].KeyUpState;
- 145 3 }
- 146 2 }
- 147 1
- 148 1 if(INT==0)
- 149 1 {
- 150 2 delay(1);
- 151 2 if(INT==0)
- 152 2 {
- 153 3 while (INT==0);
- 154 3 MB90092_ClearXY (1,2);
- 155 3 MB90092_ClearXY (1,3);
- 156 3 MB90092_ClearXY (1,4);
- 157 3 KeyFuncIndex=KeyTab[KeyFuncIndex].KeyDnState;
- 158 3 }
- 159 2 }
- 160 1 if(MODE==0)
- 161 1 {
- 162 2 delay(1);
- 163 2 if(MODE==0)
- 164 2 {
- 165 3 while (MODE==0);
- 166 3 MB90092_ClearScreen ();
- 167 3 KeyFuncIndex=KeyTab[KeyFuncIndex].KeyCrState;
- 168 3 }
- 169 2 }
- 170 1 KeyFuncPtr=KeyTab[KeyFuncIndex].CurrentOperate;
- 171 1 (*KeyFuncPtr)();
- 172 1 }
- 173
- 174
- 175
- 176
- 177
- C51 COMPILER V7.50 MEUN 04/08/2010 15:43:33 PAGE 4
- MODULE INFORMATION: STATIC OVERLAYABLE
- CODE SIZE = 1627 ----
- CONSTANT SIZE = 140 ----
- XDATA SIZE = ---- ----
- PDATA SIZE = ---- ----
- DATA SIZE = 4 20
- IDATA SIZE = ---- ----
- BIT SIZE = ---- ----
- END OF MODULE INFORMATION.
- C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)