📄 temperature.lst
字号:
HI-TECH Software PICC-18 Macro Assembler V8.35PL3
Serial number: HCPIC18-15668 Wed Jun 15 13:32:21 2005
Licensed to: DESIGNREM LTD
1 processor 18F4550
2 opt pw 80
3 psect __Z15668RS_,global,delta=1
4 psect text,global,reloc=2,class=CODE,delta=1
5 psect bss,global,class=RAM,space=1,delta=1
6 psect bigbss,global,class=BIGRAM,space=1,delta=
+ 1
7 psect temp,global,ovrld,common,class=COMRAM,spa
+ ce=1,delta=1
8 psect intsave_regs,global,class=BIGRAM,space=1,
+ delta=1
9 000000
10 000000
11 000000
12 000000
13 000000
14 000000
15 000000
16 000000
17 000000
18 000000
19 000000
20 000000
21 000000
22 000000
23 000000
24 000000
25 000000
26 000000
27 000000
28 000000
29 000000
30 000000
31 000000
32 000000
33 000000
34 000000
35 000000
36 000000
37 000000
38 000000
39 000000
40 000000
41 000000
42 000000
43 000000
44 000000
45 000000
46 000000
47 000000
48 000000
49 000000
50 000000
51 000000
52 000000
53 000000
54 000000
55 000000
56 000000
57 000000
58 000000
59 000000
60 000000
61 000000
62 000000
63 000000
64 000000
65 000000
66 000000
67 000000
68 000000
69 000000
70 000000
71 000000
72 000000
73 000000
74 000000
75 000000
76 000000
77 000000
78 000000
79 000000
80 000000
81 000000
82 000000
83 000000
84 000000
85 000000
86 000000
87 000000
88 000000
89 000000
90 000000
91 000000
92 000000
93 000000
94 000000
95 000000
96 000000
97 000000
98
99 psect __Z15668RS_
100 000004
101 000004
102
103 psect text
104 000F2E _InitTempSensor:
105 000000
106 ;temperature.c: 70: LATBbits.LATB2 = 1;
107 000F2E 848A bsf -118,2,c ;volatile
108 ;temperature.c: 71: TRISBbits.TRISB2 = 0;
109 000F30 9493 bcf -109,2,c ;volatile
110 ;temperature.c: 72: SSPSTAT = (0b00000000 | 0x80
+ ); SSPCON1 = 0b00010010;
111 000F32 0E80 movlw 128
112 000F34 6EC7 movwf 4039,c ;volatile
113 000F36 0E12 movlw 18
114 000F38 6EC6 movwf 4038,c ;volatile
115 ;temperature.c: 75: temperature._word = 0x0C87;
116 000F3A 0100 movlb _temperature shr (0+8)
117 000F3C 0E87 movlw 135
118 000F3E 6FDF movwf _temperature& (0+255),b
119 000F40 0E0C movlw 12
120 000F42 6FE0 movwf (_temperature+1)& (0+255),b
121 ;temperature.c: 76: UpdateCelsiusASCII();
122 000F44 D00E goto _UpdateCelsiusASCII ;wreg free
123 ;temperature.c: 78: }
124 000F46 _AcquireTemperature:
125 000000
126 ;temperature.c: 97: LATBbits.LATB2 = 0;
127 000F46 948A bcf -118,2,c ;volatile
128 ;temperature.c: 98: ((temperature).d.v[1]) = Rea
+ dSPI();
129 000F48 EC86 F008 call _ReadSPI ;wreg free
130 000F4C CFE8 F0E0 movff wreg,_temperature+1
131 ;temperature.c: 99: ((temperature).d.v[0]) = Rea
+ dSPI();
132 000F50 EC86 F008 call _ReadSPI ;wreg free
133 000F54 CFE8 F0DF movff wreg,_temperature
134 ;temperature.c: 100: LATBbits.LATB2 = 1;
135 000F58 848A bsf -118,2,c ;volatile
136 ;temperature.c: 102: if(temperature.c.LowB.a.b2
+ == 0)
137 000F5A 0100 movlb _temperature shr (0+8)
138 000F5C A5DF btfss _temperature& (0+255),2,b
139 ;temperature.c: 103: return FALSE;
140 000F5E 0C00 retlw 0
141 ;temperature.c: 105: return TRUE;
142 000F60 0C01 retlw 1
143 ;temperature.c: 106: }
144 ;temperature.c: 123: void UpdateCelsiusASCII(voi
+ d)
145 ;temperature.c: 124: {
146 000F62 _UpdateCelsiusASCII:
147 000000
148 ; _temp assigned to ?a_UpdateCelsiusASCII+0
149 000000 _UpdateCelsiusASCII$temp set ?a_UpdateCelsiusASC
+ II
150 ;temperature.c: 125: WORD temp;
151 000F62 C0DF F000 movff _temperature,btemp
152 000F66 C0E0 F001 movff _temperature+1,btemp+1
153 000F6A 90D8 bcf status,0,c
154 000F6C 3201 rrcf btemp+1,f
155 000F6E 3200 rrcf btemp,f
156 000F70 90D8 bcf status,0,c
157 000F72 3201 rrcf btemp+1,f
158 000F74 3200 rrcf btemp,f
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -