📄 motor.lst
字号:
HI-TECH Software PICC Macro Assembler V9.60PL5 build 3884
Tue Apr 28 13:52:09 2009
HI-TECH Software Omniscient Code Generator build 3884
1 0000 opt subtitle "HI-TECH Software Omniscient Code
Generator build 3884"
2
3 processor 16F877A
4 clrc macro
5 bcf status,0
6 0000 endm
7 clrz macro
8 bcf status,2
9 0000 endm
10 setc macro
11 bsf status,0
12 0000 endm
13 setz macro
14 bsf status,2
15 0000 endm
16 skipc macro
17 btfss status,0
18 0000 endm
19 skipz macro
20 btfss status,2
21 0000 endm
22 skipnc macro
23 btfsc status,0
24 0000 endm
25 skipnz macro
26 btfsc status,2
27 0000 endm
28 0000 indf equ 0
29 0000 indf0 equ 0
30 0000 pc equ 2
31 0000 pcl equ 2
32 0000 status equ 3
33 0000 fsr equ 4
34 0000 fsr0 equ 4
35 0000 c equ 1
36 0000 z equ 0
37 0000 pclath equ 10
38 global __tempreg
39 0000 __tempreg set 112
40 global __Lrbss_0, __Hrbss_0
41 0000 __Lrbss_0 set 0x6C
42 0000 __Hrbss_0 set 0x70
43 global __Lcommon, __Hcommon
44 0000 __Lcommon set 0x78
45 0000 __Hcommon set 0x7E
46 global __Lrdata_0, __Hrdata_0
47 0000 __Lrdata_0 equ 0x0
48 0000 __Hrdata_0 equ 0x1
49 global __Lramdata, __Lrdata_0, __Hramdata, __Hr
data_0
50 0000 __Lramdata set __Lrdata_0
51 0000 __Hramdata set __Hrdata_0
52 GLOBAL __databank
53 0000 __databank EQU 0
54 ;Data sizes: Strings 0, constant 12, data 0, bs
s 0, persistent 0 stack 5
55 global _main
56 global ??_main
57 global ?_main
58
59 ; *************** function _main **************
*
60 ; Defined at:
61 ; line 31 in file "F:\program\PIC-program\moto
r\motor1\motor.c"
62 ; Parameters:
63 ; None
64 ; Auto variables:
65 ; i type: unsigned char
66 ; Return value:
67 ; type: void
68 ; size: 0
69 ; Registers used:
70 ; wreg, status,2, status,0, pclath, cstack
71 ; Tracked objects:
72 ; On entry : BFF/0
73 ; On exit : 0/0
74 ; Unchanged: 0/0
75 ; Data sizes:
76 ; Autos: 0
77 ; Params: 0
78 ; Temp: 0
79 ; Total: 0
80 ; This function calls:
81 ; _init
82 ; This function is called by:
83 ; Startup code after reset
84 ; This function uses a non-reentrant model
85 ;
86 psect maintext,class=CODE,delta=2
87 file "F:\program\PIC-program\motor\motor1\moto
r.c"
88 line 31
89 ;motor.c: 30: void main(void)
90 ;motor.c: 31: {
91
92 002D _main:
93 ; Regs used in _main: [wreg+status,2+status,0+p
clath+cstack]
94 line 33
95 ;motor.c: 32: unsigned char i;
96 ;motor.c: 33: init();
97 002D 120A 118A 216F fcall _init
120A 118A
98 line 34
99 ;motor.c: 34: RBPU=1;
100 0032 1683 bsf status, 5 ;RP0=1, select bank1
101 0033 1303 bcf status, 6 ;RP2=0, select bank1
102 0034 1781 bsf (1039/8)^080h,(1039)&7
103 line 36
104 ;motor.c: 36: TMR0=200;
105 0035 30C8 movlw (0C8h)
106 0036 1283 bcf status, 5 ;RP0=0, select bank0
107 0037 1303 bcf status, 6 ;RP2=0, select bank0
108
109 0038 0081 movwf (1) ;volatile
110 line 37
111 ;motor.c: 37: T0CS=0;
112 0039 1683 bsf status, 5 ;RP0=1, select bank1
113 003A 1303 bcf status, 6 ;RP2=0, select bank1
114 003B 1281 bcf (1037/8)^080h,(1037)&7
115 line 38
116 ;motor.c: 38: PSA=0;
117 003C 1181 bcf (1035/8)^080h,(1035)&7
118 line 39
119 ;motor.c: 39: T0IF=0;
120 003D 1283 bcf status, 5 ;RP0=0, select bank0
121 003E 1303 bcf status, 6 ;RP2=0, select bank0
122 003F 110B bcf (90/8),(90)&7
123 line 40
124 ;motor.c: 40: PS2=1;
125 0040 1683 bsf status, 5 ;RP0=1, select bank1
126 0041 1303 bcf status, 6 ;RP2=0, select bank1
127 0042 1501 bsf (1034/8)^080h,(1034)&7
128 line 41
129 ;motor.c: 41: PS1=0;
130 0043 1081 bcf (1033/8)^080h,(1033)&7
131 line 42
132 ;motor.c: 42: PS0=1;
133 0044 1401 bsf (1032/8)^080h,(1032)&7
134 line 43
135 ;motor.c: 43: T0IE=1;
136 0045 1283 bcf status, 5 ;RP0=0, select bank0
137 0046 1303 bcf status, 6 ;RP2=0, select bank0
138 0047 168B bsf (93/8),(93)&7
139 line 44
140 ;motor.c: 44: GIE=1;
141 0048 178B bsf (95/8),(95)&7
142 line 45
143 ;motor.c: 45: while(1)
144
145 0049 l11:
146 line 48
147 ;motor.c: 46: {
148 ;motor.c: 47: ;
149
150 0049 l10:
151 line 45
152 0049 2849 goto l10
153 global start
154 004A 120A 118A 2810 ljmp start
155 ; =============== function _main ends =========
======
156
157 GLOBAL __end_of_main
158 004D __end_of_main:
159 FNSIZE _main,0,0
160 psect maintext
161 line 49
162 signat _main,88
163 global _init
164 global ??_init
165 global ?_init
166
167 ; *************** function _init **************
*
168 ; Defined at:
169 ; line 4 in file "F:\program\PIC-program\motor
\motor1\motor.c"
170 ; Parameters:
171 ; None
172 ; Auto variables:
173 ; None
174 ; Return value:
175 ; type: void
176 ; size: 0
177 ; Registers used:
178 ; wreg, status,2, status,0
179 ; Tracked objects:
180 ; On entry : BFF/0
181 ; On exit : 0/0
182 ; Unchanged: 0/0
183 ; Data sizes:
184 ; Autos: 0
185 ; Params: 0
186 ; Temp: 0
187 ; Total: 0
188 ; This function calls:
189 ; Nothing
190 ; This function is called by:
191 ; _main
192 ; This function uses a non-reentrant model
193 ;
194 psect text29,local,class=CODE,delta=2
195 file "F:\program\PIC-program\motor\motor1\moto
r.c"
196 line 4
197 ;pic168xa.h: 19: volatile unsigned char INDF @
0x00;
198 ;pic168xa.h: 20: volatile unsigned char TMR0 @
0x01;
199 ;pic168xa.h: 21: volatile unsigned char PCL @ 0
x02;
200 ;pic168xa.h: 22: volatile unsigned char STATUS
@ 0x03;
201 ;pic168xa.h: 23: unsigned char FSR @ 0x04;
202 ;pic168xa.h: 24: volatile unsigned char PORTA @
0x05;
203 ;pic168xa.h: 25: volatile unsigned char PORTB @
0x06;
204 ;pic168xa.h: 26: volatile unsigned char PORTC @
0x07;
205 ;pic168xa.h: 28: volatile unsigned char PORTD @
0x08;
206 ;pic168xa.h: 29: volatile unsigned char PORTE @
0x09;
207
208 016F _init:
209 ; Regs used in _init: [wreg+status,2+status,0]
210 line 5
211 ;motor.c: 5: TRISB=0;
212 016F 1003 clrc
213 0170 1683 bsf status, 5 ;RP0=1, select bank1
214 0171 1303 bcf status, 6 ;RP2=0, select bank1
215
216 0172 3000 movlw 0
217 0173 1803 btfsc status,0
218 0174 3001 movlw 1
219 0175 0086 movwf (134)^080h ;volatile
220 line 6
221 ;motor.c: 6: PORTB=0xff;
222 0176 1283 bcf status, 5 ;RP0=0, select bank0
223 0177 1303 bcf status, 6 ;RP2=0, select bank0
224
225 0178 30FF movlw 0ffh
226 0179 0086 movwf (6) ;volatile
227 line 7
228 ;motor.c: 7: }
229 017A l1:
230 017A 0008 return
231 ; =============== function _init ends =========
======
232
233 GLOBAL __end_of_init
234 017B __end_of_init:
235 FNSIZE _init,0,0
236 signat _init,88
237 global _time0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -