📄 main.lst
字号:
C166 COMPILER V4.22c, MAIN 07/02/2002 15:27:44 PAGE 1
C166 COMPILER V4.22c, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN main.OBJ
COMPILER INVOKED BY: C:\Keil\C166\BIN\C166.EXE main.c BROWSE MOD167 DEBUG
stmt lvl source
1 /*-----------------------------------------------------------------------------
2 Define Port 7, Direction Register, and Open Drain Register.
3 -----------------------------------------------------------------------------*/
4 sfr DP7 = 0xFFD2;
5 sfr ODP7 = 0xF1D2;
6 sfr P7 = 0xFFD0;
7
8 sbit P7_0 = P7^0;
9 sbit P7_4 = P7^4;
10
11 /*-----------------------------------------------------------------------------
12 MAIN C Function
13 -----------------------------------------------------------------------------*/
14 void main (void)
15 {
16 1 /*-----------------------------------------------
17 1 Configure P7.7-P7.4 as Outputs.
18 1 Configure P7.3-P7.0 as Inputs.
19 1 -----------------------------------------------*/
20 1 DP7 = 0xF0; /* Configure P7.7-P7.4 for output, P7.3-P7.0 for input */
21 1 ODP7 = 0xFF; /* Setup P7.7-P7.0 for open-drain */
22 1
23 1 /*-----------------------------------------------
24 1 This loop reads P7.0 and writes the value read
25 1 to P7.4.
26 1
27 1 Open the Port 7 Dialog from the Peripherals Menu
28 1 and change the value of the P7.0 Pin. When you
29 1 set P7.0 LO, P7.4 outputs LO. When you set
30 1 P7.0 HI, P7.4 outputs HI.
31 1 -----------------------------------------------*/
32 1 while (1)
33 1 {
34 2 P7_4 = P7_0;
35 2 }
36 1 }
37
38 /*-----------------------------------------------------------------------------
39 -----------------------------------------------------------------------------*/
MODULE INFORMATION: INITIALIZED UNINITIALIZED
CODE SIZE = 16 --------
NEAR-CONST SIZE = -------- --------
FAR-CONST SIZE = -------- --------
HUGE-CONST SIZE = -------- --------
XHUGE-CONST SIZE = -------- --------
NEAR-DATA SIZE = -------- --------
FAR-DATA SIZE = -------- --------
XHUGE-DATA SIZE = -------- --------
IDATA-DATA SIZE = -------- --------
SDATA-DATA SIZE = -------- --------
BDATA-DATA SIZE = -------- --------
HUGE-DATA SIZE = -------- --------
BIT SIZE = -------- --------
C166 COMPILER V4.22c, MAIN 07/02/2002 15:27:44 PAGE 2
INIT'L SIZE = -------- --------
END OF MODULE INFORMATION.
C166 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -