forked from ymqqqqdx/Keil
-
Notifications
You must be signed in to change notification settings - Fork 0
/
74ls164.LST
62 lines (54 loc) · 1.8 KB
/
74ls164.LST
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
C51 COMPILER V6.12 74LS164 03/22/2010 21:16:32 PAGE 1
C51 COMPILER V6.12, COMPILATION OF MODULE 74LS164
OBJECT MODULE PLACED IN .\74ls164.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE .\74ls164.c DEBUG OBJECTEXTEND
stmt level source
1 #include <reg52.h>
2 sbit clock=P3^1;
3 sbit dat=P3^0;
4 unsigned char code table[]={0x3f,0x06,0x5b,0x4f,
5 0x66,0x6d,0x7d,0x07,
6 0x7f,0x6f,0x77,0x7c,
7 0x39,0x5e,0x79,0x71};
8 void delay(int z)
9 {
10 1 int i,j;
11 1 for(i=z;i>0;i--)
12 1 for(j=110;j>0;j--);
13 1 }
14 void write_onechar(unsigned char temp)
15 {
16 1 int i;
17 1 for(i=0;i<8;i++)
18 1 {
19 2 dat=temp&0x01;
20 2 clock=1;
21 2 temp>>=1;
22 2 clock=0;
23 2 }
24 1 // clock=1;
25 1 delay(1);
26 1 }
27 void main()
28 {
29 1 int i;
30 1 delay(1000);
31 1 while(1)
32 1 {
33 2 for(i=0;i<16;i++)
34 2 {
35 3 write_onechar(table[i]);
36 3 delay(1000);
37 3 }
38 2 }
39 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 115 ----
CONSTANT SIZE = 16 ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 2
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)