📄 text1.lst
字号:
222 1 P3=0xfd;
223 1 for(a=0;a<8;a++)
224 1 { P0=Data;
225 2 Data=_cror_(Data,2);
226 2 delay(100);
227 2
228 2 }
229 1 P3=0xfb;
230 1 for(a=0;a<8;a++)
231 1 { P0=Data;
232 2 Data=_cror_(Data,2);
233 2 delay(100);
234 2
235 2 }
236 1
237 1 /*第10种****************两个一起双头亮到尾*******************/
238 1
239 1 P3=0xfb;
240 1 for(a=0;a<8;a++)
C51 COMPILER V7.10 TEXT1 06/04/2008 00:52:21 PAGE 5
241 1 { P0=Data1;
242 2 Data1=_crol_(Data1,2);
243 2 delay(100);
244 2
245 2 }
246 1 P3=0xfd;
247 1 for(a=0;a<8;a++)
248 1 { P0=Data1;
249 2 Data1=_crol_(Data1,2);
250 2 delay(100);
251 2
252 2 }
253 1 P3=0xfe;
254 1 for(a=0;a<8;a++)
255 1 { P0=Data1;
256 2 Data1=_crol_(Data1,2);
257 2 delay(100);
258 2
259 2
260 2 }
261 1 /*第11种**************两个一起双尾亮到头*******************/
262 1
263 1
264 1 for(b=0;b<2;b++)
265 1 { P3=0xfe;
266 2 for(a=0;a<8;a++)
267 2 { P0=Data;
268 3 Data=_cror_(Data,1);
269 3 delay(50);
270 3
271 3 }
272 2 P3=0xfd;
273 2 for(a=0;a<4;a++)
274 2 { P0=Data;
275 3 Data=_cror_(Data,1);
276 3 delay(50);
277 3
278 3 }
279 2 P3=0xfb;
280 2 for(a=0;a<8;a++)
281 2 { P0=Data1;
282 3 Data1=_crol_(Data1,1);
283 3 delay(50);
284 3
285 3 }
286 2 P3=0xfd;
287 2 for(a=0;a<4;a++)
288 2 { P0=Data1;
289 3 Data1=_cror_(Data1,1);
290 3 delay(50);
291 3
292 3 }
293 2 Data=0x80;
294 2 Data1=0x01;
295 2 }
296 1
297 1 /*第12种************************给我打两个圈啦***********************************************/
298 1
299 1
300 1
301 1 P3=0xfe;
302 1 for(a=0;a<8;a++)
C51 COMPILER V7.10 TEXT1 06/04/2008 00:52:21 PAGE 6
303 1 { P0=Data;
304 2 Data=_cror_(Data,1);
305 2 delay(25);
306 2
307 2 }
308 1 P3=0xfd;
309 1 for(a=0;a<4;a++)
310 1 { P0=Data;
311 2 Data=_cror_(Data,1);
312 2 delay(25);
313 2
314 2 }
315 1 P3=0xfb;
316 1 for(a=0;a<8;a++)
317 1 { P0=Data1;
318 2 Data1=_crol_(Data1,1);
319 2 delay(25);
320 2
321 2 }
322 1 P3=0xfd;
323 1 for(a=0;a<4;a++)
324 1 { P0=Data1;
325 2 Data1=_cror_(Data1,1);
326 2 delay(25);
327 2
328 2 }
329 1 Data=0x80;
330 1 Data1=0x01;
331 1
332 1
333 1 /*第13种**********************你也太慢了,你加一点速度了(加一倍)****************************************
-*************/
334 1
335 1
336 1
337 1
338 1
339 1
340 1 /*第14种***************************一次哦*********************************************************/
341 1
342 1
343 1
344 1 for(a=0;a<2;a++)
345 1 { for(b=0;b<3;b++)
346 2 { P3=Data7;
347 3 Data7=_crol_(Data7,1);
348 3 P0=0x81;
349 3 delay(100);
350 3 P0=0x42;
351 3 delay(100);
352 3 P0=0x24;
353 3 delay(100);
354 3 P0=0x18;
355 3 delay(100);
356 3 }
357 2 }
358 1 /*第15种******************中间移位******************************/
359 1
360 1 for(a=0;a<2;a++)
361 1 { for(b=0;b<3;b++)
362 2 { P3=Data7;
363 3 Data7=_crol_(Data7,1);
C51 COMPILER V7.10 TEXT1 06/04/2008 00:52:21 PAGE 7
364 3 P0=0x81;
365 3 delay(100);
366 3 P0=0x42;
367 3 delay(100);
368 3 P0=0x24;
369 3 delay(100);
370 3 P0=0x18;
371 3 delay(100);
372 3
373 3 P0=0x24;
374 3 delay(100);
375 3 P0=0x42;
376 3 delay(100);
377 3 P0=0x81;
378 3 delay(100);
379 3 }
380 2 Data7=0xfe;}
381 1 /*第16种***********************去拉要回来哦*****************************/
382 1
383 1 P3=0XFA;
384 1 for(a=0;a<8;a++)
385 1 { P0=SG1[a];
386 2 delay(50);}
387 1 for(a=8;a>0;a--)
388 1 { P0=SG1[a];
389 2 delay(50);
390 2 }
391 1 /*第17种*******************反过来搞一次哦*************************/
392 1 for(b=0;b<2;b++)
393 1 {
394 2 P3=0XFA;
395 2 for(a=0;a<8;a++)
396 2 { P0=SG[a];
397 3 delay(50);}
398 2 for(a=8;a>0;a--)
399 2 { P0=SG1[a];
400 3 delay(50);
401 3 }
402 2 for(a=0;a<8;a++)
403 2 { P0=SG1[a];
404 3 delay(50);
405 3 }
406 2 for(a=8;a>0;a--)
407 2 { P0=SG[a];
408 3 delay(50);
409 3 }
410 2 }
411 1 /*第18种******************************左右流两次********************************/
412 1 P3=0x00;
413 1 for(b=0;b<8;b++)
414 1 { P0=Data;
415 2 Data=_cror_(Data,1);
416 2 for(a=0;a<10;a++)
417 2 { P0=Data;;
418 3 delay(50);
419 3 P0=0x00;
420 3 delay(20);
421 3
422 3 }
423 2
424 2 }
425 1
C51 COMPILER V7.10 TEXT1 06/04/2008 00:52:21 PAGE 8
426 1 /*第19种******************************左右流两次********************************/
427 1
428 1
429 1
430 1
431 1
432 1
433 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 2118 ----
CONSTANT SIZE = 18 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 33
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -