?? icex56.lst
字號(hào):
1 ;R page registers setting
2 0000 R0 ==0X00;
3 0001 TCC ==0X01;
4 0002 R2 ==0X02;
5 0003 R3 ==0X03;
6 0004 R4 ==0X04;
7 0005 port5 ==0x05;
8 0006 port6 ==0x06;
9 000F RF ==0X0F;
10
11 ;IOC page registers setting
12 0001 CONT ==0X01;
13 0005 P5CR ==0X05;
14 0006 P6CR ==0X06;
15 000A IOCA ==0X0A;
16 000B PDCR ==0X0B;
17 000C ODCR ==0X0C;
18 000D PHCR ==0X0D;
19 000E WDTCR ==0X0E;
20 000F IOCF ==0X0F;
21
22 0010 high_value ==0x10;
23 0011 low_value ==0x11;
24 0012 high_value1 ==0x12;
25 0013 low_value1 ==0x13;
26 0014 dt1 ==0x14;
27 0015 dt2 ==0x15;
28 0016 flag ==0x16;
29 0017 temp_A ==0x17;
30 0018 temp_S ==0x18;
31
32 ;function check display byte
33 0020 port50 ==0x20;
34 0021 port51 ==0x21;
35 0022 port52 ==0x22;
36 0023 port53 ==0x23;
37 0024 port60 ==0x24;
38 0025 port61 ==0x25;
39 0026 port62 ==0x26;
40 0027 port63 ==0x27;
41 0028 port64 ==0x28;
42 0029 port65 ==0x29;
43 002A port66 ==0x2a;
44 002B port67 ==0x2b;
45 002C pulldown_buf==0x2c;
46 002D pullhigh_buf==0x2d;
47 002E tcc_buf ==0x2e;
48 002F int0_buf ==0x2f;
49 0030 port6_buf ==0x30;
50 0031 wdt_buf ==0x31;
51
52 ;I/Oport input and output display bits setting
53 0000 input0 ==0;
54 0001 input1 ==1;
55 0002 output0 ==2;
56 0003 output1 ==3;
57 0003 T ==3;
58 0004 P ==4;
59
60 ;pull-down display bits setting
61 0000 p50_down ==0;
62 0001 p51_down ==1;
63 0002 p52_down ==2;
64 0004 p60_down ==4;
65 0005 p61_down ==5;
66 0006 p62_down ==6;
67 0007 p63_down ==7;
68
69 ;pull-high display bits setting
70 0000 p60_high ==0;
71 0001 p61_high ==1;
72 0002 p62_high ==2;
73 0003 p63_high ==3;
74 0004 p64_high ==4;
75 0005 p65_high ==5;
76 0006 p66_high ==6;
77 0007 p67_high ==7;
78
79 ;flag bits setting
80 0000 key_flag ==0;
81 0001 key_state ==1;
82 0002 p60_flag ==2;
83 0003 key_over ==3;
84
85 org 000h
86 00000 0000 start: nop
87 00001 0000 nop
88 00002 1430 jmp main
89 00003 0000 nop
90 00004 0000 nop
91 00005 0000 nop
92 00006 0000 nop
93 00007 0000 nop
94
95
96 org 008h
97 00008 0000 interrupt: nop
98 00009 16D4 jmp intin
99 0000A 0000 nop
100 0000B 0000 nop
101 0000C 0000 nop
102 0000D 0000 nop
103 0000E 0000 nop
104 0000F 0000 nop
105
106
107 org 030h
108 00030 0000 main: nop
109 00031 0000 nop
110 00032 0000 nop
111 00033 0000 nop
112 00034 0000 nop
113 00035 0000 nop
114 00036 0000 nop
115 00037 0000 nop
116 00038 0000 nop
117 00039 0000 nop
118 0003A 0000 nop
119 0003B 0000 nop
120 0003C 0EC3 jbs r3, T
121 0003D 1449 jmp main1
122 0003E 0F03 jbs r3, P
123 0003F 1449 jmp main1
124 00040 18FF clrram: mov a, @0xff
125 00041 0044 mov r4, a
126 00042 00C0 clr r0 ;clear ram
127 00043 01C4 dec r4
128 00044 183F mov a, @0x3f
129 00045 0284 and a, r4
130 00046 1D0F sub a, @0x0f
131 00047 0E03 jbs r3, 0
132 00048 1442 jmp $-6
133 /**************************************/
134 00049 18FF main1: mov a, @0xff
135 0004A 000B iow PDCR
136 0004B 000D iow PHCR
137 0004C 0005 iow P5CR
138 0004D 0006 iow P6CR
139 0004E 1800 mov a, @0x00
140 0004F 004F mov RF, a
141 00050 000C iow ODCR
142 00051 000E iow WDTCR
143 00052 0000 nop
144 00053 0000 nop
145 /**************************************/
146 00054 180D benchmark: mov a, @0x0d ;set P51 output,others input
147 00055 0005 iow P5CR
148 00056 18FF mov a, @0xff
149 00057 0006 iow P6CR
150 00058 0A45 bs port5, 1
151 00059 132A call delay
152 0005A 0C05 jbc port5, 0
153 0005B 0550 inc high_value
154 0005C 0845 bc port5, 1
155 0005D 132A call delay
156 0005E 0E05 jbs port5, 0
157 0005F 0551 inc low_value
158 /**************************************/
159 00060 180B benchmark1: mov a, @0x0b ;set P52 output,others input
160 00061 0005 iow P5CR
161 00062 18FF mov a, @0xff
162 00063 0006 iow P6CR
163 00064 0A85 bs port5, 2
164 00065 132A call delay
165 00066 0C05 jbc port5, 0
166 00067 0550 inc high_value
167 00068 0885 bc port5, 2
168 00069 132A call delay
169 0006A 0E05 jbs port5, 0
170 0006B 0551 inc low_value
171 /**************************************/
172 0006C 1807 benchmark2: mov a, @0x07 ;set P53 output,others input
173 0006D 0005 iow P5CR
174 0006E 18FF mov a, @0xff
175 0006F 0006 iow P6CR
176 00070 0AC5 bs port5, 3
177 00071 132A call delay
178 00072 0C05 jbc port5, 0
179 00073 0550 inc high_value
180 00074 08C5 bc port5, 3
181 00075 132A call delay
182 00076 0E05 jbs port5, 0
183 00077 0551 inc low_value
184 /**************************************/
185 00078 180F benchmark3: mov a, @0x0f ;set P60 output,others input
186 00079 0005 iow P5CR
187 0007A 18FE mov a, @0xfe
188 0007B 0006 iow P6CR
189 0007C 0A06 bs port6, 0
190 0007D 132A call delay
191 0007E 0C05 jbc port5, 0
192 0007F 0550 inc high_value
193 00080 0806 bc port6, 0
194 00081 132A call delay
195 00082 0E05 jbs port5, 0
196 00083 0551 inc low_value
197 /**************************************/
198 00084 180F benchmark4: mov a, @0x0f ;set P61 output,others input
199 00085 0005 iow P5CR
200 00086 18FD mov a, @0xfd
201 00087 0006 iow P6CR
202 00088 0A46 bs port6, 1
203 00089 132A call delay
204 0008A 0C05 jbc port5, 0
205 0008B 0550 inc high_value
206 0008C 0846 bc port6, 1
207 0008D 132A call delay
208 0008E 0E05 jbs port5, 0
209 0008F 0551 inc low_value
210 /**************************************/
211 00090 180F benchmark5: mov a, @0x0f ;set P62 output,others input
212 00091 0005 iow P5CR
213 00092 18FB mov a, @0xfb
214 00093 0006 iow P6CR
215 00094 0A86 bs port6, 2
216 00095 132A call delay
217 00096 0C05 jbc port5, 0
218 00097 0550 inc high_value
219 00098 0886 bc port6, 2
220 00099 132A call delay
221 0009A 0E05 jbs port5, 0
222 0009B 0551 inc low_value
223 /**************************************/
224 0009C 180F benchmark6: mov a, @0x0f ;set P63 output,others input
225 0009D 0005 iow P5CR
226 0009E 18F7 mov a, @0xf7
227 0009F 0006 iow P6CR
228 000A0 0AC6 bs port6, 3
229 000A1 132A call delay
230 000A2 0C05 jbc port5, 0
231 000A3 0550 inc high_value
232 000A4 08C6 bc port6, 3
233 000A5 132A call delay
234 000A6 0E05 jbs port5, 0
235 000A7 0551 inc low_value
236 000A8 0000 nop
237 /**************************************/
238 000A9 180E benchmark7: mov a, @0x0e ;set P50 output 0,others input
239 000AA 0005 iow P5CR
240 000AB 18FF mov a, @0xff
241 000AC 0006 iow P6CR
242
243 000AD 0805 bc port5, 0
244 000AE 132A call delay
245 000AF 0E45 jbs port5, 1
246 000B0 0553 inc low_value1
247 000B1 0000 nop
248 000B2 0E85 jbs port5, 2
249 000B3 0553 inc low_value1
250 000B4 0000 nop
251 000B5 0EC5 jbs port5, 3
252 000B6 0553 inc low_value1
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -