pic_rc5/out/RC5_Remote_Control.lst

1842 lines
92 KiB
Plaintext
Raw Normal View History

HI-TECH Software PIC LITE Macro Assembler V9.82 build 9453
Fri Apr 15 09:39:32 2016
HI-TECH Software Omniscient Code Generator (Lite mode) build 9453
1 0000 opt subtitle "HI-TECH Software Omniscient Code Generator (Lite mode) build 9453"
2
3 opt pagewidth 120
4
5 opt lm
6
7 processor 16F628A
8 clrc macro
9 bcf 3,0
10 0000 endm
11 clrz macro
12 bcf 3,2
13 0000 endm
14 setc macro
15 bsf 3,0
16 0000 endm
17 setz macro
18 bsf 3,2
19 0000 endm
20 skipc macro
21 btfss 3,0
22 0000 endm
23 skipz macro
24 btfss 3,2
25 0000 endm
26 skipnc macro
27 btfsc 3,0
28 0000 endm
29 skipnz macro
30 btfsc 3,2
31 0000 endm
32 0000 indf equ 0
33 0000 indf0 equ 0
34 0002 pc equ 2
35 0002 pcl equ 2
36 0003 status equ 3
37 0004 fsr equ 4
38 0004 fsr0 equ 4
39 0001 c equ 1
40 0000 z equ 0
41 000A pclath equ 10
42 # 43 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
43 psect config,class=CONFIG,delta=2 ;#
44 # 43 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
45 2007 FF01 dw 0xFF7F & 0xFFBF & 0xFFFF & 0xFFDF & 0xFFF7 & 0xFFFB & 0xFFED ;#
46 FNCALL _main,_evaluate_tastatur
47 FNCALL _main,_SendRc5
48 FNCALL _SendRc5,_SendEins
49 FNCALL _SendRc5,_SendNull
50 FNCALL _SendRc5,_delay_89ms
51 FNCALL _SendNull,_AN
52 FNCALL _SendNull,_AUS
53 FNCALL _SendEins,_AUS
54 FNCALL _SendEins,_AN
55 FNROOT _main
56 FNCALL intlevel1,_ISR
57 global intlevel1
58 FNROOT intlevel1
59 global _CountA
60 global _CountB
61 global _CountC
62 global _cycl_1
63 global _cycl_2
64 global _somethingpressed
65 global _counterms
66 global _counterus
67 global _toggle
68 global _CMCON
69 psect text296,local,class=CODE,delta=2
70 global __ptext296
71 0000 __ptext296:
72 001F _CMCON set 31
73 global _INTCON
74 000B _INTCON set 11
75 global _PORTA
76 0005 _PORTA set 5
77 global _PORTB
78 0006 _PORTB set 6
79 global _CARRY
80 0018 _CARRY set 24
81 global _CM0
82 00F8 _CM0 set 248
83 global _CM1
84 00F9 _CM1 set 249
85 global _CM2
86 00FA _CM2 set 250
87 global _GIE
88 005F _GIE set 95
89 global _RA0
90 0028 _RA0 set 40
91 global _RBIE
92 005B _RBIE set 91
93 global _RBIF
94 0058 _RBIF set 88
95 global _EEADR
96 009B _EEADR set 155
97 global _EECON1
98 009C _EECON1 set 156
99 global _EECON2
100 009D _EECON2 set 157
101 global _EEDATA
102 009A _EEDATA set 154
103 global _OPTION_REG
104 0081 _OPTION_REG set 129
105 global _TRISA
106 0085 _TRISA set 133
107 global _TRISB
108 0086 _TRISB set 134
109 global _RD
110 04E0 _RD set 1248
111 global _WR
112 04E1 _WR set 1249
113 global _WREN
114 04E2 _WREN set 1250
115 file "RC5_Remote_Control.as"
116 line #
117 psect cinit,class=CODE,delta=2
118 global start_initialization
119 0172 start_initialization:
120
121 psect bssCOMMON,class=COMMON,space=1
122 global __pbssCOMMON
123 0077 __pbssCOMMON:
124 0077 _counterms:
125 0077 ds 1
126
127 0078 _counterus:
128 0078 ds 1
129
130 0079 _toggle:
131 0079 ds 1
132
133 psect bssBANK0,class=BANK0,space=1
134 global __pbssBANK0
135 0020 __pbssBANK0:
136 0020 _CountA:
137 0020 ds 2
138
139 0022 _CountB:
140 0022 ds 2
141
142 0024 _CountC:
143 0024 ds 2
144
145 0026 _cycl_1:
146 0026 ds 2
147
148 0028 _cycl_2:
149 0028 ds 2
150
151 002A _somethingpressed:
152 002A ds 2
153
154 psect clrtext,class=CODE,delta=2
155 global clear_ram
156 ; Called with FSR containing the base address, and
157 ; W with the last address+1
158 017C clear_ram:
159 017C 0064 clrwdt ;clear the watchdog before getting into this loop
160 017D clrloop:
161 017D 0180 clrf indf ;clear RAM location pointed to by FSR
162 017E 0A84 incf fsr,f ;increment pointer
163 017F 0604 xorwf fsr,w ;XOR with final address
164 0180 1903 btfsc status,2 ;have we reached the end yet?
165 0181 3400 retlw 0 ;all done for this memory range, return
166 0182 0604 xorwf fsr,w ;XOR again to restore value
167 0183 297D goto clrloop ;do the next byte
168
169 ; Clear objects allocated to COMMON
170 psect cinit,class=CODE,delta=2
171 0172 01F7 clrf ((__pbssCOMMON)+0)&07Fh
172 0173 01F8 clrf ((__pbssCOMMON)+1)&07Fh
173 0174 01F9 clrf ((__pbssCOMMON)+2)&07Fh
174 ; Clear objects allocated to BANK0
175 psect cinit,class=CODE,delta=2
176 0175 1383 bcf status, 7 ;select IRP bank0
177 0176 3020 movlw low(__pbssBANK0)
178 0177 0084 movwf fsr
179 0178 302C movlw low((__pbssBANK0)+0Ch)
180 0179 217C fcall clear_ram
181 psect cinit,class=CODE,delta=2
182 global end_of_initialization
183
184 ;End of C runtime variable initialization code
185
186 017A end_of_initialization:
187 017A 0183 clrf status
188 017B 28E0 ljmp _main ;jump to C main() function
189 psect cstackCOMMON,class=COMMON,space=1
190 global __pcstackCOMMON
191 0070 __pcstackCOMMON:
192 global ?_AN
193 0070 ?_AN: ; 0 bytes @ 0x0
194 global ?_AUS
195 0070 ?_AUS: ; 0 bytes @ 0x0
196 global ?_ISR
197 0070 ?_ISR: ; 0 bytes @ 0x0
198 global ??_ISR
199 0070 ??_ISR: ; 0 bytes @ 0x0
200 global ?_delay_89ms
201 0070 ?_delay_89ms: ; 0 bytes @ 0x0
202 global ?_SendEins
203 0070 ?_SendEins: ; 0 bytes @ 0x0
204 global ?_SendNull
205 0070 ?_SendNull: ; 0 bytes @ 0x0
206 global ?_evaluate_tastatur
207 0070 ?_evaluate_tastatur: ; 0 bytes @ 0x0
208 global ?_main
209 0070 ?_main: ; 0 bytes @ 0x0
210 0070 ds 4
211 global ??_AN
212 0074 ??_AN: ; 0 bytes @ 0x4
213 global ??_AUS
214 0074 ??_AUS: ; 0 bytes @ 0x4
215 global ??_delay_89ms
216 0074 ??_delay_89ms: ; 0 bytes @ 0x4
217 global ??_evaluate_tastatur
218 0074 ??_evaluate_tastatur: ; 0 bytes @ 0x4
219 0074 ds 1
220 global AN@i
221 0075 AN@i: ; 1 bytes @ 0x5
222 global AUS@i
223 0075 AUS@i: ; 1 bytes @ 0x5
224 0075 ds 1
225 global ??_SendEins
226 0076 ??_SendEins: ; 0 bytes @ 0x6
227 global ??_SendNull
228 0076 ??_SendNull: ; 0 bytes @ 0x6
229 global ?_SendRc5
230 0076 ?_SendRc5: ; 0 bytes @ 0x6
231 global SendRc5@group
232 0076 SendRc5@group: ; 1 bytes @ 0x6
233 0076 ds 1
234 psect cstackBANK0,class=BANK0,space=1
235 global __pcstackBANK0
236 002C __pcstackBANK0:
237 global ??_SendRc5
238 002C ??_SendRc5: ; 0 bytes @ 0x0
239 global evaluate_tastatur@comcode
240 002C evaluate_tastatur@comcode: ; 1 bytes @ 0x0
241 002C ds 1
242 global evaluate_tastatur@e
243 002D evaluate_tastatur@e: ; 1 bytes @ 0x1
244 global SendRc5@command
245 002D SendRc5@command: ; 1 bytes @ 0x1
246 002D ds 1
247 global evaluate_tastatur@i
248 002E evaluate_tastatur@i: ; 1 bytes @ 0x2
249 global SendRc5@i
250 002E SendRc5@i: ; 1 bytes @ 0x2
251 002E ds 1
252 global evaluate_tastatur@a
253 002F evaluate_tastatur@a: ; 1 bytes @ 0x3
254 002F ds 1
255 global ??_main
256 0030 ??_main: ; 0 bytes @ 0x4
257 0030 ds 1
258 global main@help
259 0031 main@help: ; 1 bytes @ 0x5
260 0031 ds 1
261 global main@subcode
262 0032 main@subcode: ; 1 bytes @ 0x6
263 0032 ds 1
264 global main@comcode
265 0033 main@comcode: ; 1 bytes @ 0x7
266 0033 ds 1
267 ;;Data sizes: Strings 0, constant 0, data 0, bss 15, persistent 0 stack 0
268 ;;Auto spaces: Size Autos Used
269 ;; COMMON 14 7 10
270 ;; BANK0 80 8 20
271 ;; BANK1 80 0 0
272 ;; BANK2 48 0 0
273
274 ;;
275 ;; Pointer list with targets:
276
277 ;; SendRc5@command PTR unsigned char size(1) Largest target is 1
278 ;; -> main@comcode(BANK0[1]),
279 ;;
280 ;; SendRc5@group PTR unsigned char size(1) Largest target is 1
281 ;; -> main@subcode(BANK0[1]),
282 ;;
283 ;; evaluate_tastatur@comcode PTR unsigned char size(1) Largest target is 1
284 ;; -> main@comcode(BANK0[1]),
285 ;;
286
287
288 ;;
289 ;; Critical Paths under _main in COMMON
290 ;;
291 ;; _main->_SendRc5
292 ;; _SendNull->_AN
293 ;; _SendNull->_AUS
294 ;; _SendEins->_AUS
295 ;; _SendEins->_AN
296 ;;
297 ;; Critical Paths under _ISR in COMMON
298 ;;
299 ;; None.
300 ;;
301 ;; Critical Paths under _main in BANK0
302 ;;
303 ;; _main->_evaluate_tastatur
304 ;;
305 ;; Critical Paths under _ISR in BANK0
306 ;;
307 ;; None.
308 ;;
309 ;; Critical Paths under _main in BANK1
310 ;;
311 ;; None.
312 ;;
313 ;; Critical Paths under _ISR in BANK1
314 ;;
315 ;; None.
316 ;;
317 ;; Critical Paths under _main in BANK2
318 ;;
319 ;; None.
320 ;;
321 ;; Critical Paths under _ISR in BANK2
322 ;;
323 ;; None.
324
325 ;;
326 ;;Main: autosize = 0, tempsize = 1, incstack = 0, save=0
327 ;;
328
329 ;;
330 ;;Call Graph Tables:
331 ;;
332 ;; ---------------------------------------------------------------------------------
333 ;; (Depth) Function Calls Base Space Used Autos Params Refs
334 ;; ---------------------------------------------------------------------------------
335 ;; (0) _main 4 4 0 788
336 ;; 4 BANK0 4 4 0
337 ;; _evaluate_tastatur
338 ;; _SendRc5
339 ;; ---------------------------------------------------------------------------------
340 ;; (1) _SendRc5 4 3 1 402
341 ;; 6 COMMON 1 0 1
342 ;; 0 BANK0 3 3 0
343 ;; _SendEins
344 ;; _SendNull
345 ;; _delay_89ms
346 ;; ---------------------------------------------------------------------------------
347 ;; (2) _SendNull 0 0 0 71
348 ;; _AN
349 ;; _AUS
350 ;; ---------------------------------------------------------------------------------
351 ;; (2) _SendEins 0 0 0 71
352 ;; _AUS
353 ;; _AN
354 ;; ---------------------------------------------------------------------------------
355 ;; (1) _evaluate_tastatur 6 6 0 266
356 ;; 4 COMMON 2 2 0
357 ;; 0 BANK0 4 4 0
358 ;; ---------------------------------------------------------------------------------
359 ;; (2) _delay_89ms 0 0 0 0
360 ;; ---------------------------------------------------------------------------------
361 ;; (3) _AUS 2 2 0 34
362 ;; 4 COMMON 2 2 0
363 ;; ---------------------------------------------------------------------------------
364 ;; (3) _AN 2 2 0 37
365 ;; 4 COMMON 2 2 0
366 ;; ---------------------------------------------------------------------------------
367 ;; Estimated maximum stack depth 3
368 ;; ---------------------------------------------------------------------------------
369 ;; (Depth) Function Calls Base Space Used Autos Params Refs
370 ;; ---------------------------------------------------------------------------------
371 ;; (4) _ISR 4 4 0 0
372 ;; 0 COMMON 4 4 0
373 ;; ---------------------------------------------------------------------------------
374 ;; Estimated maximum stack depth 4
375 ;; ---------------------------------------------------------------------------------
376
377 ;; Call Graph Graphs:
378
379 ;; _main (ROOT)
380 ;; _evaluate_tastatur
381 ;; _SendRc5
382 ;; _SendEins
383 ;; _AUS
384 ;; _AN
385 ;; _SendNull
386 ;; _AN
387 ;; _AUS
388 ;; _delay_89ms
389 ;;
390 ;; _ISR (ROOT)
391 ;;
392
393 ;; Address spaces:
394
395 ;;Name Size Autos Total Cost Usage
396 ;;BITCOMMON E 0 0 0 0.0%
397 ;;EEDATA 80 0 0 0 0.0%
398 ;;NULL 0 0 0 0 0.0%
399 ;;CODE 0 0 0 0 0.0%
400 ;;COMMON E 7 A 1 71.4%
401 ;;BITSFR0 0 0 0 1 0.0%
402 ;;SFR0 0 0 0 1 0.0%
403 ;;BITSFR1 0 0 0 2 0.0%
404 ;;SFR1 0 0 0 2 0.0%
405 ;;STACK 0 0 3 2 0.0%
406 ;;BANK0 50 8 14 3 25.0%
407 ;;BITSFR3 0 0 0 4 0.0%
408 ;;SFR3 0 0 0 4 0.0%
409 ;;ABS 0 0 1E 4 0.0%
410 ;;BITBANK0 50 0 0 5 0.0%
411 ;;BITSFR2 0 0 0 5 0.0%
412 ;;SFR2 0 0 0 5 0.0%
413 ;;BITBANK1 50 0 0 6 0.0%
414 ;;BANK1 50 0 0 7 0.0%
415 ;;BITBANK2 30 0 0 8 0.0%
416 ;;BANK2 30 0 0 9 0.0%
417 ;;DATA 0 0 21 10 0.0%
418
419 global _main
420 psect maintext,global,class=CODE,delta=2
421 global __pmaintext
422 00E0 __pmaintext:
423
424 ;; *************** function _main *****************
425 ;; Defined at:
426 ;; line 260 in file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
427 ;; Parameters: Size Location Type
428 ;; None
429 ;; Auto vars: Size Location Type
430 ;; comcode 1 7[BANK0 ] unsigned char
431 ;; subcode 1 6[BANK0 ] unsigned char
432 ;; help 1 5[BANK0 ] unsigned char
433 ;; Return value: Size Location Type
434 ;; None void
435 ;; Registers used:
436 ;; wreg, fsr0l, fsr0h, status,2, status,0, pclath, cstack
437 ;; Tracked objects:
438 ;; On entry : 17F/0
439 ;; On exit : 0/0
440 ;; Unchanged: 0/0
441 ;; Data sizes: COMMON BANK0 BANK1 BANK2
442 ;; Params: 0 0 0 0
443 ;; Locals: 0 3 0 0
444 ;; Temps: 0 1 0 0
445 ;; Totals: 0 4 0 0
446 ;;Total ram usage: 4 bytes
447 ;; Hardware stack levels required when called: 4
448 ;; This function calls:
449 ;; _evaluate_tastatur
450 ;; _SendRc5
451 ;; This function is called by:
452 ;; Startup code after reset
453 ;; This function uses a non-reentrant model
454 ;;
455 psect maintext
456 file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
457 line 260
458 global __size_of_main
459 0049 __size_of_main equ __end_of_main-_main
460
461 00E0 _main:
462 opt stack 4
463 ; Regs used in _main: [wreg-fsr0h+status,2+status,0+pclath+cstack]
464 line 261
465
466 00E0 l2416:
467 ;main.c: 261: unsigned char comcode = 0;
468 00E0 1283 bcf status, 5 ;RP0=0, select bank0
469 00E1 1303 bcf status, 6 ;RP1=0, select bank0
470 00E2 01B3 clrf (main@comcode)
471 line 262
472 ;main.c: 262: char subcode = 0;
473 00E3 01B2 clrf (main@subcode)
474 line 264
475
476 00E4 l2418:
477 ;main.c: 264: OPTION_REG = 0b00000010;
478 00E4 3002 movlw (02h)
479 00E5 1683 bsf status, 5 ;RP0=1, select bank1
480 00E6 1303 bcf status, 6 ;RP1=0, select bank1
481 00E7 0081 movwf (129)^080h ;volatile
482 line 265
483 ;main.c: 265: CMCON = 0x07;
484 00E8 3007 movlw (07h)
485 00E9 1283 bcf status, 5 ;RP0=0, select bank0
486 00EA 1303 bcf status, 6 ;RP1=0, select bank0
487 00EB 009F movwf (31) ;volatile
488 line 266
489
490 00EC l2420:
491 ;main.c: 266: TRISA = 0x00;
492 00EC 1683 bsf status, 5 ;RP0=1, select bank1
493 00ED 1303 bcf status, 6 ;RP1=0, select bank1
494 00EE 0185 clrf (133)^080h ;volatile
495 line 267
496
497 00EF l2422:
498 ;main.c: 267: TRISB = 0xF0;
499 00EF 30F0 movlw (0F0h)
500 00F0 0086 movwf (134)^080h ;volatile
501 line 269
502
503 00F1 l2424:
504 ;main.c: 269: GIE = 1;
505 00F1 178B bsf (95/8),(95)&7
506 line 270
507
508 00F2 l2426:
509 ;main.c: 270: CM0 = 1;
510 00F2 1283 bcf status, 5 ;RP0=0, select bank0
511 00F3 1303 bcf status, 6 ;RP1=0, select bank0
512 00F4 141F bsf (248/8),(248)&7
513 line 271
514
515 00F5 l2428:
516 ;main.c: 271: CM1 = 1;
517 00F5 149F bsf (249/8),(249)&7
518 line 272
519
520 00F6 l2430:
521 ;main.c: 272: CM2 = 1;
522 00F6 151F bsf (250/8),(250)&7
523 line 273
524 ;main.c: 273: PORTA = 0;
525 00F7 0185 clrf (5) ;volatile
526 line 274
527
528 00F8 l2432:
529 ;main.c: 274: PORTB = 0xFF;
530 00F8 30FF movlw (0FFh)
531 00F9 0086 movwf (6) ;volatile
532 line 275
533
534 00FA l2434:
535 ;main.c: 275: subcode = 29;
536 00FA 301D movlw (01Dh)
537 00FB 00B0 movwf (??_main+0)+0
538 00FC 0830 movf (??_main+0)+0,w
539 00FD 00B2 movwf (main@subcode)
540 line 278
541 ;main.c: 278: INTCON = 0;
542 00FE 018B clrf (11) ;volatile
543 line 279
544
545 00FF l2436:
546 ;main.c: 279: RBIE = 1;
547 00FF 158B bsf (91/8),(91)&7
548 line 280
549
550 0100 l2438:
551 ;main.c: 280: char help = 0;
552 0100 01B1 clrf (main@help)
553 0101 2904 goto l439
554 line 282
555 ;main.c: 282: while(1)
556
557 0102 l438:
558 line 284
559 ;main.c: 283: {
560 ;main.c: 284: while(!RBIF)
561 0102 2904 goto l439
562
563 0103 l440:
564 line 285
565 # 285 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
566 0103 0063 sleep ;#
567 psect maintext
568
569 0104 l439:
570 line 284
571 0104 1C0B btfss (88/8),(88)&7
572 0105 2907 goto u2801
573 0106 2908 goto u2800
574 0107 u2801:
575 0107 2903 goto l440
576 0108 u2800:
577 0108 2909 goto l2440
578
579 0109 l441:
580 line 286
581
582 0109 l2440:
583 ;main.c: 286: PORTB = 0xFF;
584 0109 30FF movlw (0FFh)
585 010A 1283 bcf status, 5 ;RP0=0, select bank0
586 010B 1303 bcf status, 6 ;RP1=0, select bank0
587 010C 0086 movwf (6) ;volatile
588 line 287
589
590 010D l2442:
591 ;main.c: 287: evaluate_tastatur(&comcode);
592 010D 3033 movlw (main@comcode)&0ffh
593 010E 2081 fcall _evaluate_tastatur
594 line 288
595
596 010F l2444:
597 ;main.c: 288: if(somethingpressed == 1)
598 010F 3001 movlw 01h
599 0110 1283 bcf status, 5 ;RP0=0, select bank0
600 0111 1303 bcf status, 6 ;RP1=0, select bank0
601 0112 062A xorwf (_somethingpressed),w
602 0113 042B iorwf (_somethingpressed+1),w
603 0114 1D03 skipz
604 0115 2917 goto u2811
605 0116 2918 goto u2810
606 0117 u2811:
607 0117 2904 goto l439
608 0118 u2810:
609 line 290
610
611 0118 l2446:
612 ;main.c: 289: {
613 ;main.c: 290: SendRc5(&comcode, &subcode);
614 0118 3032 movlw (main@subcode)&0ffh
615 0119 00B0 movwf (??_main+0)+0
616 011A 0830 movf (??_main+0)+0,w
617 011B 00F6 movwf (?_SendRc5)
618 011C 3033 movlw (main@comcode)&0ffh
619 011D 2011 fcall _SendRc5
620 line 291
621
622 011E l2448:
623 ;main.c: 291: somethingpressed = 0;
624 011E 1283 bcf status, 5 ;RP0=0, select bank0
625 011F 1303 bcf status, 6 ;RP1=0, select bank0
626 0120 01AA clrf (_somethingpressed)
627 0121 01AB clrf (_somethingpressed+1)
628 line 292
629
630 0122 l2450:
631 ;main.c: 292: help = 1;
632 0122 01B1 clrf (main@help)
633 0123 1403 bsf status,0
634 0124 0DB1 rlf (main@help),f
635 0125 2904 goto l439
636 line 293
637
638 0126 l442:
639 0126 2904 goto l439
640 line 303
641
642 0127 l443:
643 line 282
644 0127 2904 goto l439
645
646 0128 l444:
647 line 304
648
649 0128 l445:
650 global start
651 0128 2810 ljmp start
652 opt stack 0
653 GLOBAL __end_of_main
654 0129 __end_of_main:
655 ;; =============== function _main ends ============
656
657 signat _main,88
658 global _SendRc5
659 psect text297,local,class=CODE,delta=2
660 global __ptext297
661 0011 __ptext297:
662
663 ;; *************** function _SendRc5 *****************
664 ;; Defined at:
665 ;; line 229 in file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
666 ;; Parameters: Size Location Type
667 ;; command 1 wreg PTR unsigned char
668 ;; -> main@comcode(1),
669 ;; group 1 6[COMMON] PTR unsigned char
670 ;; -> main@subcode(1),
671 ;; Auto vars: Size Location Type
672 ;; command 1 1[BANK0 ] PTR unsigned char
673 ;; -> main@comcode(1),
674 ;; i 1 2[BANK0 ] unsigned char
675 ;; Return value: Size Location Type
676 ;; None void
677 ;; Registers used:
678 ;; wreg, fsr0l, fsr0h, status,2, status,0, pclath, cstack
679 ;; Tracked objects:
680 ;; On entry : 0/0
681 ;; On exit : 0/0
682 ;; Unchanged: 0/0
683 ;; Data sizes: COMMON BANK0 BANK1 BANK2
684 ;; Params: 1 0 0 0
685 ;; Locals: 0 2 0 0
686 ;; Temps: 0 1 0 0
687 ;; Totals: 1 3 0 0
688 ;;Total ram usage: 4 bytes
689 ;; Hardware stack levels used: 1
690 ;; Hardware stack levels required when called: 3
691 ;; This function calls:
692 ;; _SendEins
693 ;; _SendNull
694 ;; _delay_89ms
695 ;; This function is called by:
696 ;; _main
697 ;; This function uses a non-reentrant model
698 ;;
699 psect text297
700 file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
701 line 229
702 global __size_of_SendRc5
703 0070 __size_of_SendRc5 equ __end_of_SendRc5-_SendRc5
704
705 0011 _SendRc5:
706 opt stack 4
707 ; Regs used in _SendRc5: [wreg-fsr0h+status,2+status,0+pclath+cstack]
708 ;SendRc5@command stored from wreg
709 line 231
710 0011 1283 bcf status, 5 ;RP0=0, select bank0
711 0012 1303 bcf status, 6 ;RP1=0, select bank0
712 0013 00AD movwf (SendRc5@command)
713
714 0014 l2374:
715 ;main.c: 230: unsigned char i;
716 ;main.c: 231: SendEins();
717 0014 2187 fcall _SendEins
718 line 232
719 ;main.c: 232: SendEins();
720 0015 2187 fcall _SendEins
721 line 234
722
723 0016 l2376:
724 ;main.c: 234: toggle = toggle ^ 1 & 1;
725 0016 0879 movf (_toggle),w
726 0017 3A01 xorlw 01h
727 0018 1283 bcf status, 5 ;RP0=0, select bank0
728 0019 1303 bcf status, 6 ;RP1=0, select bank0
729 001A 00AC movwf (??_SendRc5+0)+0
730 001B 082C movf (??_SendRc5+0)+0,w
731 001C 00F9 movwf (_toggle)
732 line 235
733
734 001D l2378:
735 ;main.c: 235: if(toggle == 1)
736 001D 0879 movf (_toggle),w
737 001E 3A01 xorlw 01h
738 001F 1D03 skipz
739 0020 2822 goto u2711
740 0021 2823 goto u2710
741 0022 u2711:
742 0022 2825 goto l2382
743 0023 u2710:
744 line 236
745
746 0023 l2380:
747 ;main.c: 236: SendEins();
748 0023 2187 fcall _SendEins
749 0024 2827 goto l2384
750 line 237
751
752 0025 l425:
753 line 238
754
755 0025 l2382:
756 ;main.c: 237: else
757 ;main.c: 238: SendNull();
758 0025 2184 fcall _SendNull
759 0026 2827 goto l2384
760
761 0027 l426:
762 line 240
763
764 0027 l2384:
765 ;main.c: 240: for(i = 4; i != 255; i--)
766 0027 3004 movlw (04h)
767 0028 1283 bcf status, 5 ;RP0=0, select bank0
768 0029 1303 bcf status, 6 ;RP1=0, select bank0
769 002A 00AC movwf (??_SendRc5+0)+0
770 002B 082C movf (??_SendRc5+0)+0,w
771 002C 00AE movwf (SendRc5@i)
772
773 002D l2386:
774 002D 082E movf (SendRc5@i),w
775 002E 3AFF xorlw 0FFh
776 002F 1D03 skipz
777 0030 2832 goto u2721
778 0031 2833 goto u2720
779 0032 u2721:
780 0032 2835 goto l2390
781 0033 u2720:
782 0033 2854 goto l2400
783
784 0034 l2388:
785 0034 2854 goto l2400
786 line 241
787
788 0035 l427:
789 line 242
790
791 0035 l2390:
792 ;main.c: 241: {
793 ;main.c: 242: if(((*group>>i))&1)
794 0035 0876 movf (SendRc5@group),w
795 0036 0084 movwf fsr0
796 0037 1383 bcf status, 7 ;select IRP bank0
797 0038 0800 movf indf,w
798 0039 00AC movwf (??_SendRc5+0)+0
799 003A 0A2E incf (SendRc5@i),w
800 003B 283E goto u2734
801 003C u2735:
802 003C 1003 clrc
803 003D 0CAC rrf (??_SendRc5+0)+0,f
804 003E u2734:
805 003E 3EFF addlw -1
806 003F 1D03 skipz
807 0040 283C goto u2735
808 0041 1C2C btfss 0+(??_SendRc5+0)+0,(0)&7
809 0042 2844 goto u2741
810 0043 2845 goto u2740
811 0044 u2741:
812 0044 2847 goto l2394
813 0045 u2740:
814 line 243
815
816 0045 l2392:
817 ;main.c: 243: SendEins();
818 0045 2187 fcall _SendEins
819 0046 2849 goto l2396
820 line 244
821
822 0047 l429:
823 line 245
824
825 0047 l2394:
826 ;main.c: 244: else
827 ;main.c: 245: SendNull();
828 0047 2184 fcall _SendNull
829 0048 2849 goto l2396
830
831 0049 l430:
832 line 240
833
834 0049 l2396:
835 0049 3001 movlw low(01h)
836 004A 1283 bcf status, 5 ;RP0=0, select bank0
837 004B 1303 bcf status, 6 ;RP1=0, select bank0
838 004C 02AE subwf (SendRc5@i),f
839
840 004D l2398:
841 004D 082E movf (SendRc5@i),w
842 004E 3AFF xorlw 0FFh
843 004F 1D03 skipz
844 0050 2852 goto u2751
845 0051 2853 goto u2750
846 0052 u2751:
847 0052 2835 goto l2390
848 0053 u2750:
849 0053 2854 goto l2400
850
851 0054 l428:
852 line 247
853
854 0054 l2400:
855 ;main.c: 246: }
856 ;main.c: 247: for(i = 5; i != 255; i--)
857 0054 3005 movlw (05h)
858 0055 00AC movwf (??_SendRc5+0)+0
859 0056 082C movf (??_SendRc5+0)+0,w
860 0057 00AE movwf (SendRc5@i)
861 0058 082E movf (SendRc5@i),w
862 0059 3AFF xorlw 0FFh
863 005A 1D03 skipz
864 005B 285D goto u2761
865 005C 285E goto u2760
866 005D u2761:
867 005D 2860 goto l2404
868 005E u2760:
869 005E 287F goto l2414
870
871 005F l2402:
872 005F 287F goto l2414
873 line 248
874
875 0060 l431:
876 line 249
877
878 0060 l2404:
879 ;main.c: 248: {
880 ;main.c: 249: if(((*command)>>i)&1)
881 0060 082D movf (SendRc5@command),w
882 0061 0084 movwf fsr0
883 0062 1383 bcf status, 7 ;select IRP bank0
884 0063 0800 movf indf,w
885 0064 00AC movwf (??_SendRc5+0)+0
886 0065 0A2E incf (SendRc5@i),w
887 0066 2869 goto u2774
888 0067 u2775:
889 0067 1003 clrc
890 0068 0CAC rrf (??_SendRc5+0)+0,f
891 0069 u2774:
892 0069 3EFF addlw -1
893 006A 1D03 skipz
894 006B 2867 goto u2775
895 006C 1C2C btfss 0+(??_SendRc5+0)+0,(0)&7
896 006D 286F goto u2781
897 006E 2870 goto u2780
898 006F u2781:
899 006F 2872 goto l2408
900 0070 u2780:
901 line 250
902
903 0070 l2406:
904 ;main.c: 250: SendEins();
905 0070 2187 fcall _SendEins
906 0071 2874 goto l2410
907 line 251
908
909 0072 l433:
910 line 252
911
912 0072 l2408:
913 ;main.c: 251: else
914 ;main.c: 252: SendNull();
915 0072 2184 fcall _SendNull
916 0073 2874 goto l2410
917
918 0074 l434:
919 line 247
920
921 0074 l2410:
922 0074 3001 movlw low(01h)
923 0075 1283 bcf status, 5 ;RP0=0, select bank0
924 0076 1303 bcf status, 6 ;RP1=0, select bank0
925 0077 02AE subwf (SendRc5@i),f
926
927 0078 l2412:
928 0078 082E movf (SendRc5@i),w
929 0079 3AFF xorlw 0FFh
930 007A 1D03 skipz
931 007B 287D goto u2791
932 007C 287E goto u2790
933 007D u2791:
934 007D 2860 goto l2404
935 007E u2790:
936 007E 287F goto l2414
937
938 007F l432:
939 line 254
940
941 007F l2414:
942 ;main.c: 253: }
943 ;main.c: 254: delay_89ms();
944 007F 2147 fcall _delay_89ms
945 line 256
946
947 0080 l435:
948 0080 0008 return
949 opt stack 0
950 GLOBAL __end_of_SendRc5
951 0081 __end_of_SendRc5:
952 ;; =============== function _SendRc5 ends ============
953
954 signat _SendRc5,8312
955 global _SendNull
956 psect text298,local,class=CODE,delta=2
957 global __ptext298
958 0184 __ptext298:
959
960 ;; *************** function _SendNull *****************
961 ;; Defined at:
962 ;; line 195 in file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
963 ;; Parameters: Size Location Type
964 ;; None
965 ;; Auto vars: Size Location Type
966 ;; None
967 ;; Return value: Size Location Type
968 ;; None void
969 ;; Registers used:
970 ;; wreg, status,2, status,0, pclath, cstack
971 ;; Tracked objects:
972 ;; On entry : 0/0
973 ;; On exit : 0/0
974 ;; Unchanged: 0/0
975 ;; Data sizes: COMMON BANK0 BANK1 BANK2
976 ;; Params: 0 0 0 0
977 ;; Locals: 0 0 0 0
978 ;; Temps: 0 0 0 0
979 ;; Totals: 0 0 0 0
980 ;;Total ram usage: 0 bytes
981 ;; Hardware stack levels used: 1
982 ;; Hardware stack levels required when called: 2
983 ;; This function calls:
984 ;; _AN
985 ;; _AUS
986 ;; This function is called by:
987 ;; _SendRc5
988 ;; This function uses a non-reentrant model
989 ;;
990 psect text298
991 file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
992 line 195
993 global __size_of_SendNull
994 0003 __size_of_SendNull equ __end_of_SendNull-_SendNull
995
996 0184 _SendNull:
997 opt stack 4
998 ; Regs used in _SendNull: [wreg+status,2+status,0+pclath+cstack]
999 line 196
1000
1001 0184 l2372:
1002 ;main.c: 196: AN();
1003 0184 2129 fcall _AN
1004 line 197
1005 ;main.c: 197: AUS();
1006 0185 2157 fcall _AUS
1007 line 198
1008
1009 0186 l414:
1010 0186 0008 return
1011 opt stack 0
1012 GLOBAL __end_of_SendNull
1013 0187 __end_of_SendNull:
1014 ;; =============== function _SendNull ends ============
1015
1016 signat _SendNull,88
1017 global _SendEins
1018 psect text299,local,class=CODE,delta=2
1019 global __ptext299
1020 0187 __ptext299:
1021
1022 ;; *************** function _SendEins *****************
1023 ;; Defined at:
1024 ;; line 190 in file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1025 ;; Parameters: Size Location Type
1026 ;; None
1027 ;; Auto vars: Size Location Type
1028 ;; None
1029 ;; Return value: Size Location Type
1030 ;; None void
1031 ;; Registers used:
1032 ;; wreg, status,2, status,0, pclath, cstack
1033 ;; Tracked objects:
1034 ;; On entry : 0/0
1035 ;; On exit : 0/0
1036 ;; Unchanged: 0/0
1037 ;; Data sizes: COMMON BANK0 BANK1 BANK2
1038 ;; Params: 0 0 0 0
1039 ;; Locals: 0 0 0 0
1040 ;; Temps: 0 0 0 0
1041 ;; Totals: 0 0 0 0
1042 ;;Total ram usage: 0 bytes
1043 ;; Hardware stack levels used: 1
1044 ;; Hardware stack levels required when called: 2
1045 ;; This function calls:
1046 ;; _AUS
1047 ;; _AN
1048 ;; This function is called by:
1049 ;; _SendRc5
1050 ;; This function uses a non-reentrant model
1051 ;;
1052 psect text299
1053 file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1054 line 190
1055 global __size_of_SendEins
1056 0003 __size_of_SendEins equ __end_of_SendEins-_SendEins
1057
1058 0187 _SendEins:
1059 opt stack 4
1060 ; Regs used in _SendEins: [wreg+status,2+status,0+pclath+cstack]
1061 line 191
1062
1063 0187 l2370:
1064 ;main.c: 191: AUS();
1065 0187 2157 fcall _AUS
1066 line 192
1067 ;main.c: 192: AN();
1068 0188 2129 fcall _AN
1069 line 193
1070
1071 0189 l411:
1072 0189 0008 return
1073 opt stack 0
1074 GLOBAL __end_of_SendEins
1075 018A __end_of_SendEins:
1076 ;; =============== function _SendEins ends ============
1077
1078 signat _SendEins,88
1079 global _evaluate_tastatur
1080 psect text300,local,class=CODE,delta=2
1081 global __ptext300
1082 0081 __ptext300:
1083
1084 ;; *************** function _evaluate_tastatur *****************
1085 ;; Defined at:
1086 ;; line 202 in file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1087 ;; Parameters: Size Location Type
1088 ;; comcode 1 wreg PTR unsigned char
1089 ;; -> main@comcode(1),
1090 ;; Auto vars: Size Location Type
1091 ;; comcode 1 0[BANK0 ] PTR unsigned char
1092 ;; -> main@comcode(1),
1093 ;; a 1 3[BANK0 ] unsigned char
1094 ;; i 1 2[BANK0 ] unsigned char
1095 ;; e 1 1[BANK0 ] unsigned char
1096 ;; Return value: Size Location Type
1097 ;; None void
1098 ;; Registers used:
1099 ;; wreg, fsr0l, fsr0h, status,2, status,0
1100 ;; Tracked objects:
1101 ;; On entry : 0/0
1102 ;; On exit : 0/0
1103 ;; Unchanged: 0/0
1104 ;; Data sizes: COMMON BANK0 BANK1 BANK2
1105 ;; Params: 0 0 0 0
1106 ;; Locals: 0 4 0 0
1107 ;; Temps: 2 0 0 0
1108 ;; Totals: 2 4 0 0
1109 ;;Total ram usage: 6 bytes
1110 ;; Hardware stack levels used: 1
1111 ;; Hardware stack levels required when called: 1
1112 ;; This function calls:
1113 ;; Nothing
1114 ;; This function is called by:
1115 ;; _main
1116 ;; This function uses a non-reentrant model
1117 ;;
1118 psect text300
1119 file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1120 line 202
1121 global __size_of_evaluate_tastatur
1122 005F __size_of_evaluate_tastatur equ __end_of_evaluate_tastatur-_evaluate_tastatur
1123
1124 0081 _evaluate_tastatur:
1125 opt stack 6
1126 ; Regs used in _evaluate_tastatur: [wreg-fsr0h+status,2+status,0]
1127 ;evaluate_tastatur@comcode stored from wreg
1128 line 206
1129 0081 1283 bcf status, 5 ;RP0=0, select bank0
1130 0082 1303 bcf status, 6 ;RP1=0, select bank0
1131 0083 00AC movwf (evaluate_tastatur@comcode)
1132
1133 0084 l2338:
1134 ;main.c: 203: unsigned char i;
1135 ;main.c: 204: unsigned char a;
1136 ;main.c: 205: unsigned char e;
1137 ;main.c: 206: e = 0;
1138 0084 01AD clrf (evaluate_tastatur@e)
1139 line 208
1140
1141 0085 l2340:
1142 ;main.c: 208: for(i=3; i != 255; i--)
1143 0085 3003 movlw (03h)
1144 0086 00F4 movwf (??_evaluate_tastatur+0)+0
1145 0087 0874 movf (??_evaluate_tastatur+0)+0,w
1146 0088 00AE movwf (evaluate_tastatur@i)
1147 0089 082E movf (evaluate_tastatur@i),w
1148 008A 3AFF xorlw 0FFh
1149 008B 1D03 skipz
1150 008C 288E goto u2641
1151 008D 288F goto u2640
1152 008E u2641:
1153 008E 2891 goto l2344
1154 008F u2640:
1155 008F 28DF goto l422
1156
1157 0090 l2342:
1158 0090 28DF goto l422
1159 line 209
1160
1161 0091 l417:
1162 line 210
1163
1164 0091 l2344:
1165 ;main.c: 209: {
1166 ;main.c: 210: PORTB = 0xFF;
1167 0091 30FF movlw (0FFh)
1168 0092 0086 movwf (6) ;volatile
1169 line 211
1170
1171 0093 l2346:
1172 ;main.c: 211: PORTB &= ~(1<<i);
1173 0093 3001 movlw (01h)
1174 0094 00F4 movwf (??_evaluate_tastatur+0)+0
1175 0095 0A2E incf (evaluate_tastatur@i),w
1176 0096 2899 goto u2654
1177 0097 u2655:
1178 0097 1003 clrc
1179 0098 0DF4 rlf (??_evaluate_tastatur+0)+0,f
1180 0099 u2654:
1181 0099 3EFF addlw -1
1182 009A 1D03 skipz
1183 009B 2897 goto u2655
1184 009C 0874 movf 0+(??_evaluate_tastatur+0)+0,w
1185 009D 3AFF xorlw 0ffh
1186 009E 00F5 movwf (??_evaluate_tastatur+1)+0
1187 009F 0875 movf (??_evaluate_tastatur+1)+0,w
1188 00A0 0586 andwf (6),f ;volatile
1189 line 212
1190
1191 00A1 l2348:
1192 ;main.c: 212: for(a=4; a <= 7; a++)
1193 00A1 3004 movlw (04h)
1194 00A2 00F4 movwf (??_evaluate_tastatur+0)+0
1195 00A3 0874 movf (??_evaluate_tastatur+0)+0,w
1196 00A4 00AF movwf (evaluate_tastatur@a)
1197
1198 00A5 l2350:
1199 00A5 3008 movlw (08h)
1200 00A6 022F subwf (evaluate_tastatur@a),w
1201 00A7 1C03 skipc
1202 00A8 28AA goto u2661
1203 00A9 28AB goto u2660
1204 00AA u2661:
1205 00AA 28AD goto l2354
1206 00AB u2660:
1207 00AB 28D6 goto l2366
1208
1209 00AC l2352:
1210 00AC 28D6 goto l2366
1211 line 213
1212
1213 00AD l419:
1214 line 214
1215
1216 00AD l2354:
1217 ;main.c: 213: {
1218 ;main.c: 214: e++;
1219 00AD 3001 movlw (01h)
1220 00AE 00F4 movwf (??_evaluate_tastatur+0)+0
1221 00AF 0874 movf (??_evaluate_tastatur+0)+0,w
1222 00B0 07AD addwf (evaluate_tastatur@e),f
1223 line 215
1224 ;main.c: 215: if( ((PORTB>>a) & 1) == 0)
1225 00B1 0806 movf (6),w ;volatile
1226 00B2 00F4 movwf (??_evaluate_tastatur+0)+0
1227 00B3 0A2F incf (evaluate_tastatur@a),w
1228 00B4 28B7 goto u2674
1229 00B5 u2675:
1230 00B5 1003 clrc
1231 00B6 0CF4 rrf (??_evaluate_tastatur+0)+0,f
1232 00B7 u2674:
1233 00B7 3EFF addlw -1
1234 00B8 1D03 skipz
1235 00B9 28B5 goto u2675
1236 00BA 1874 btfsc 0+(??_evaluate_tastatur+0)+0,(0)&7
1237 00BB 28BD goto u2681
1238 00BC 28BE goto u2680
1239 00BD u2681:
1240 00BD 28CB goto l2362
1241 00BE u2680:
1242 line 217
1243
1244 00BE l2356:
1245 ;main.c: 216: {
1246 ;main.c: 217: *comcode = e;
1247 00BE 082D movf (evaluate_tastatur@e),w
1248 00BF 00F4 movwf (??_evaluate_tastatur+0)+0
1249 00C0 082C movf (evaluate_tastatur@comcode),w
1250 00C1 0084 movwf fsr0
1251 00C2 0874 movf (??_evaluate_tastatur+0)+0,w
1252 00C3 1383 bcf status, 7 ;select IRP bank0
1253 00C4 0080 movwf indf
1254 line 218
1255
1256 00C5 l2358:
1257 ;main.c: 218: somethingpressed = 1;
1258 00C5 3001 movlw low(01h)
1259 00C6 00AA movwf (_somethingpressed)
1260 00C7 3000 movlw high(01h)
1261 00C8 00AB movwf ((_somethingpressed))+1
1262 00C9 28DF goto l422
1263 line 219
1264
1265 00CA l2360:
1266 ;main.c: 219: return;
1267 00CA 28DF goto l422
1268 line 220
1269
1270 00CB l421:
1271 line 212
1272
1273 00CB l2362:
1274 00CB 3001 movlw (01h)
1275 00CC 00F4 movwf (??_evaluate_tastatur+0)+0
1276 00CD 0874 movf (??_evaluate_tastatur+0)+0,w
1277 00CE 07AF addwf (evaluate_tastatur@a),f
1278
1279 00CF l2364:
1280 00CF 3008 movlw (08h)
1281 00D0 022F subwf (evaluate_tastatur@a),w
1282 00D1 1C03 skipc
1283 00D2 28D4 goto u2691
1284 00D3 28D5 goto u2690
1285 00D4 u2691:
1286 00D4 28AD goto l2354
1287 00D5 u2690:
1288 00D5 28D6 goto l2366
1289
1290 00D6 l420:
1291 line 208
1292
1293 00D6 l2366:
1294 00D6 3001 movlw low(01h)
1295 00D7 02AE subwf (evaluate_tastatur@i),f
1296
1297 00D8 l2368:
1298 00D8 082E movf (evaluate_tastatur@i),w
1299 00D9 3AFF xorlw 0FFh
1300 00DA 1D03 skipz
1301 00DB 28DD goto u2701
1302 00DC 28DE goto u2700
1303 00DD u2701:
1304 00DD 2891 goto l2344
1305 00DE u2700:
1306 00DE 28DF goto l422
1307
1308 00DF l418:
1309 line 226
1310
1311 00DF l422:
1312 00DF 0008 return
1313 opt stack 0
1314 GLOBAL __end_of_evaluate_tastatur
1315 00E0 __end_of_evaluate_tastatur:
1316 ;; =============== function _evaluate_tastatur ends ============
1317
1318 signat _evaluate_tastatur,4216
1319 global _delay_89ms
1320 psect text301,local,class=CODE,delta=2
1321 global __ptext301
1322 0147 __ptext301:
1323
1324 ;; *************** function _delay_89ms *****************
1325 ;; Defined at:
1326 ;; line 165 in file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1327 ;; Parameters: Size Location Type
1328 ;; None
1329 ;; Auto vars: Size Location Type
1330 ;; None
1331 ;; Return value: Size Location Type
1332 ;; None void
1333 ;; Registers used:
1334 ;; None
1335 ;; Tracked objects:
1336 ;; On entry : 0/0
1337 ;; On exit : 0/0
1338 ;; Unchanged: 0/0
1339 ;; Data sizes: COMMON BANK0 BANK1 BANK2
1340 ;; Params: 0 0 0 0
1341 ;; Locals: 0 0 0 0
1342 ;; Temps: 0 0 0 0
1343 ;; Totals: 0 0 0 0
1344 ;;Total ram usage: 0 bytes
1345 ;; Hardware stack levels used: 1
1346 ;; Hardware stack levels required when called: 1
1347 ;; This function calls:
1348 ;; Nothing
1349 ;; This function is called by:
1350 ;; _SendRc5
1351 ;; This function uses a non-reentrant model
1352 ;;
1353 psect text301
1354 file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1355 line 165
1356 global __size_of_delay_89ms
1357 0010 __size_of_delay_89ms equ __end_of_delay_89ms-_delay_89ms
1358
1359 0147 _delay_89ms:
1360 opt stack 5
1361 ; Regs used in _delay_89ms: []
1362 line 167
1363
1364 0147 l2336:
1365 # 167 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1366 0147 pause89ms ;#
1367 line 168
1368 # 168 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1369 0147 01A0 clrf _CountA ;#
1370 line 169
1371 # 169 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1372 0148 01A2 clrf _CountB ;#
1373 line 170
1374 # 170 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1375 0149 01A4 clrf _CountC ;#
1376 line 171
1377 # 171 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1378 014A 3074 movlw 0x74 ;#
1379 line 172
1380 # 172 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1381 014B 00A2 movwf _CountB ;#
1382 line 173
1383 # 173 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1384 014C 3002 movlw 0x02 ;#
1385 line 174
1386 # 174 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1387 014D 00A0 movwf _CountA ;#
1388 line 175
1389 # 175 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1390 014E 3001 movlw 0x01 ;#
1391 line 176
1392 # 176 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1393 014F 00A4 movwf _CountC ;#
1394 line 178
1395 # 178 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1396 0150 Loop ;Wiederholung der Zeitverz<72>gerung ;#
1397 line 179
1398 # 179 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1399 0150 0BA0 decfsz _CountA ;#
1400 line 180
1401 # 180 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1402 0151 2950 goto Loop ;#
1403 line 181
1404 # 181 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1405 0152 0BA2 decfsz _CountB ;#
1406 line 182
1407 # 182 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1408 0153 2950 goto Loop ;#
1409 line 183
1410 # 183 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1411 0154 0BA4 decfsz _CountC ;#
1412 line 184
1413 # 184 "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1414 0155 2950 goto Loop ;#
1415 psect text301
1416 line 187
1417 ;main.c: 186: return;
1418
1419 0156 l408:
1420 0156 0008 return
1421 opt stack 0
1422 GLOBAL __end_of_delay_89ms
1423 0157 __end_of_delay_89ms:
1424 ;; =============== function _delay_89ms ends ============
1425
1426 signat _delay_89ms,88
1427 global _AUS
1428 psect text302,local,class=CODE,delta=2
1429 global __ptext302
1430 0157 __ptext302:
1431
1432 ;; *************** function _AUS *****************
1433 ;; Defined at:
1434 ;; line 133 in file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1435 ;; Parameters: Size Location Type
1436 ;; None
1437 ;; Auto vars: Size Location Type
1438 ;; i 1 5[COMMON] unsigned char
1439 ;; Return value: Size Location Type
1440 ;; None void
1441 ;; Registers used:
1442 ;; wreg, status,2, status,0
1443 ;; Tracked objects:
1444 ;; On entry : 0/0
1445 ;; On exit : 0/0
1446 ;; Unchanged: 0/0
1447 ;; Data sizes: COMMON BANK0 BANK1 BANK2
1448 ;; Params: 0 0 0 0
1449 ;; Locals: 1 0 0 0
1450 ;; Temps: 1 0 0 0
1451 ;; Totals: 2 0 0 0
1452 ;;Total ram usage: 2 bytes
1453 ;; Hardware stack levels used: 1
1454 ;; Hardware stack levels required when called: 1
1455 ;; This function calls:
1456 ;; Nothing
1457 ;; This function is called by:
1458 ;; _SendEins
1459 ;; _SendNull
1460 ;; This function uses a non-reentrant model
1461 ;;
1462 psect text302
1463 file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1464 line 133
1465 global __size_of_AUS
1466 0010 __size_of_AUS equ __end_of_AUS-_AUS
1467
1468 0157 _AUS:
1469 opt stack 4
1470 ; Regs used in _AUS: [wreg+status,2+status,0]
1471 line 134
1472
1473 0157 l2332:
1474 ;main.c: 134: unsigned char i = 0;
1475 0157 01F5 clrf (AUS@i)
1476 line 135
1477 ;main.c: 135: do
1478
1479 0158 l400:
1480 line 137
1481 ;main.c: 136: {
1482 ;main.c: 137: RA0=0;
1483 0158 1283 bcf status, 5 ;RP0=0, select bank0
1484 0159 1303 bcf status, 6 ;RP1=0, select bank0
1485 015A 1005 bcf (40/8),(40)&7
1486 line 139
1487
1488 015B l2334:
1489 ;main.c: 138: }
1490 ;main.c: 139: while(i++<59);
1491 015B 3001 movlw (01h)
1492 015C 00F4 movwf (??_AUS+0)+0
1493 015D 0874 movf (??_AUS+0)+0,w
1494 015E 07F5 addwf (AUS@i),f
1495 015F 303C movlw (03Ch)
1496 0160 0275 subwf ((AUS@i)),w
1497 0161 1C03 skipc
1498 0162 2964 goto u2631
1499 0163 2965 goto u2630
1500 0164 u2631:
1501 0164 2958 goto l400
1502 0165 u2630:
1503 0165 2966 goto l402
1504
1505 0166 l401:
1506 line 154
1507
1508 0166 l402:
1509 0166 0008 return
1510 opt stack 0
1511 GLOBAL __end_of_AUS
1512 0167 __end_of_AUS:
1513 ;; =============== function _AUS ends ============
1514
1515 signat _AUS,88
1516 global _AN
1517 psect text303,local,class=CODE,delta=2
1518 global __ptext303
1519 0129 __ptext303:
1520
1521 ;; *************** function _AN *****************
1522 ;; Defined at:
1523 ;; line 60 in file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1524 ;; Parameters: Size Location Type
1525 ;; None
1526 ;; Auto vars: Size Location Type
1527 ;; i 1 5[COMMON] unsigned char
1528 ;; Return value: Size Location Type
1529 ;; None void
1530 ;; Registers used:
1531 ;; wreg, status,2, status,0
1532 ;; Tracked objects:
1533 ;; On entry : 0/0
1534 ;; On exit : 0/0
1535 ;; Unchanged: 0/0
1536 ;; Data sizes: COMMON BANK0 BANK1 BANK2
1537 ;; Params: 0 0 0 0
1538 ;; Locals: 1 0 0 0
1539 ;; Temps: 1 0 0 0
1540 ;; Totals: 2 0 0 0
1541 ;;Total ram usage: 2 bytes
1542 ;; Hardware stack levels used: 1
1543 ;; Hardware stack levels required when called: 1
1544 ;; This function calls:
1545 ;; Nothing
1546 ;; This function is called by:
1547 ;; _SendEins
1548 ;; _SendNull
1549 ;; This function uses a non-reentrant model
1550 ;;
1551 psect text303
1552 file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1553 line 60
1554 global __size_of_AN
1555 001E __size_of_AN equ __end_of_AN-_AN
1556
1557 0129 _AN:
1558 opt stack 4
1559 ; Regs used in _AN: [wreg+status,2+status,0]
1560 line 61
1561
1562 0129 l2326:
1563 ;main.c: 61: unsigned char i = 0;
1564 0129 01F5 clrf (AN@i)
1565 line 62
1566 ;main.c: 62: do
1567
1568 012A l395:
1569 line 64
1570 ;main.c: 63: {
1571 ;main.c: 64: RA0 = 1;
1572 012A 1283 bcf status, 5 ;RP0=0, select bank0
1573 012B 1303 bcf status, 6 ;RP1=0, select bank0
1574 012C 1405 bsf (40/8),(40)&7
1575 line 65
1576 ;main.c: 65: RA0 = 1;
1577 012D 1405 bsf (40/8),(40)&7
1578 line 66
1579 ;main.c: 66: RA0 = 1;
1580 012E 1405 bsf (40/8),(40)&7
1581 line 67
1582 ;main.c: 67: RA0 = 1;
1583 012F 1405 bsf (40/8),(40)&7
1584 line 69
1585 ;main.c: 69: RA0 = 0;
1586 0130 1005 bcf (40/8),(40)&7
1587 line 70
1588 ;main.c: 70: RA0 = 0;
1589 0131 1005 bcf (40/8),(40)&7
1590 line 71
1591 ;main.c: 71: RA0 = 0;
1592 0132 1005 bcf (40/8),(40)&7
1593 line 72
1594 ;main.c: 72: RA0 = 0;
1595 0133 1005 bcf (40/8),(40)&7
1596 line 73
1597 ;main.c: 73: RA0 = 0;
1598 0134 1005 bcf (40/8),(40)&7
1599 line 74
1600 ;main.c: 74: RA0 = 0;
1601 0135 1005 bcf (40/8),(40)&7
1602 line 75
1603 ;main.c: 75: RA0 = 0;
1604 0136 1005 bcf (40/8),(40)&7
1605 line 76
1606 ;main.c: 76: RA0 = 0;
1607 0137 1005 bcf (40/8),(40)&7
1608 line 77
1609 ;main.c: 77: RA0 = 0;
1610 0138 1005 bcf (40/8),(40)&7
1611 line 78
1612 ;main.c: 78: RA0 = 0;
1613 0139 1005 bcf (40/8),(40)&7
1614 line 79
1615 ;main.c: 79: RA0 = 0;
1616 013A 1005 bcf (40/8),(40)&7
1617 line 80
1618
1619 013B l2328:
1620 ;main.c: 80: i++;
1621 013B 3001 movlw (01h)
1622 013C 00F4 movwf (??_AN+0)+0
1623 013D 0874 movf (??_AN+0)+0,w
1624 013E 07F5 addwf (AN@i),f
1625 line 82
1626
1627 013F l2330:
1628 ;main.c: 81: }
1629 ;main.c: 82: while(i<32);
1630 013F 3020 movlw (020h)
1631 0140 0275 subwf (AN@i),w
1632 0141 1C03 skipc
1633 0142 2944 goto u2621
1634 0143 2945 goto u2620
1635 0144 u2621:
1636 0144 292A goto l395
1637 0145 u2620:
1638
1639 0145 l396:
1640 line 84
1641 ;main.c: 84: RA0 = 0;
1642 0145 1005 bcf (40/8),(40)&7
1643 line 130
1644
1645 0146 l397:
1646 0146 0008 return
1647 opt stack 0
1648 GLOBAL __end_of_AN
1649 0147 __end_of_AN:
1650 ;; =============== function _AN ends ============
1651
1652 signat _AN,88
1653 global _ISR
1654 psect text304,local,class=CODE,delta=2
1655 global __ptext304
1656 0167 __ptext304:
1657
1658 ;; *************** function _ISR *****************
1659 ;; Defined at:
1660 ;; line 160 in file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1661 ;; Parameters: Size Location Type
1662 ;; None
1663 ;; Auto vars: Size Location Type
1664 ;; None
1665 ;; Return value: Size Location Type
1666 ;; None void
1667 ;; Registers used:
1668 ;; None
1669 ;; Tracked objects:
1670 ;; On entry : 0/0
1671 ;; On exit : 0/0
1672 ;; Unchanged: 0/0
1673 ;; Data sizes: COMMON BANK0 BANK1 BANK2
1674 ;; Params: 0 0 0 0
1675 ;; Locals: 0 0 0 0
1676 ;; Temps: 4 0 0 0
1677 ;; Totals: 4 0 0 0
1678 ;;Total ram usage: 4 bytes
1679 ;; Hardware stack levels used: 1
1680 ;; This function calls:
1681 ;; Nothing
1682 ;; This function is called by:
1683 ;; Interrupt level 1
1684 ;; This function uses a non-reentrant model
1685 ;;
1686 psect text304
1687 file "C:\Users\132033dt\Desktop\RC5_Remote_Control\src\main.c"
1688 line 160
1689 global __size_of_ISR
1690 000B __size_of_ISR equ __end_of_ISR-_ISR
1691
1692 0167 _ISR:
1693 opt stack 4
1694 ; Regs used in _ISR: []
1695 psect intentry,class=CODE,delta=2
1696 global __pintentry
1697 0004 __pintentry:
1698 global interrupt_function
1699 0004 interrupt_function:
1700 global saved_w
1701 007E saved_w set btemp+0
1702 0004 00FE movwf saved_w
1703 0005 0E03 swapf status,w
1704 0006 00F0 movwf (??_ISR+0)
1705 0007 0804 movf fsr0,w
1706 0008 00F1 movwf (??_ISR+1)
1707 0009 080A movf pclath,w
1708 000A 00F2 movwf (??_ISR+2)
1709 000B 1283 bcf status, 5 ;RP0=0, select bank0
1710 000C 1303 bcf status, 6 ;RP1=0, select bank0
1711 000D 087F movf btemp+1,w
1712 000E 00F3 movwf (??_ISR+3)
1713 000F 2967 ljmp _ISR
1714 psect text304
1715 line 162
1716
1717 0167 i1l405:
1718 0167 0873 movf (??_ISR+3),w
1719 0168 00FF movwf btemp+1
1720 0169 0872 movf (??_ISR+2),w
1721 016A 008A movwf pclath
1722 016B 0871 movf (??_ISR+1),w
1723 016C 0084 movwf fsr0
1724 016D 0E70 swapf (??_ISR+0)^0FFFFFF80h,w
1725 016E 0083 movwf status
1726 016F 0EFE swapf saved_w,f
1727 0170 0E7E swapf saved_w,w
1728 0171 0009 retfie
1729 opt stack 0
1730 GLOBAL __end_of_ISR
1731 0172 __end_of_ISR:
1732 ;; =============== function _ISR ends ============
1733
1734 signat _ISR,88
1735 psect text305,local,class=CODE,delta=2
1736 global __ptext305
1737 0000 __ptext305:
1738 global btemp
1739 007E btemp set 07Eh
1740
1741 DABS 1,126,2 ;btemp
1742 global wtemp0
1743 007E wtemp0 set btemp
HI-TECH Software PICC Macro Assembler V9.82 build 9453
Symbol Table Fri Apr 15 09:39:32 2016
_AN 0129 _RD 04E0 _WR 04E1
fsr 0004 AN@i 0075 ?_AN 0070
l400 0158 l401 0166 l402 0166
l411 0189 l420 00D6 l421 00CB
l422 00DF l414 0186 l430 0049
l431 0060 l408 0156 l432 007F
l440 0103 l417 0091 l433 0072
l425 0025 l441 0109 l418 00DF
l434 0074 l426 0027 l442 0126
l419 00AD l435 0080 l427 0035
l443 0127 l428 0054 l444 0128
l429 0047 l445 0128 l438 0102
_CM0 00F8 l439 0104 _CM1 00F9
_CM2 00FA l395 012A l396 0145
l397 0146 _GIE 005F _RA0 0028
_AUS 0157 _ISR 0167 Loop 0150
__end_of_evaluate_tastatur 00E0 fsr0 0004 indf 0000
??_AN 0074 ?_AUS 0070 AUS@i 0075
?_ISR 0070 main@comcode 0033 l2400 0054
l2330 013F l2410 0074 l2402 005F
l2332 0157 l2340 0085 l2412 0078
l2404 0060 l2420 00EC l2326 0129
l2334 015B l2350 00A5 l2342 0090
l2406 0070 l2414 007F l2430 00F6
l2422 00EF l2328 013B l2336 0147
l2360 00CA l2352 00AC l2344 0091
l2408 0072 l2440 0109 l2432 00F8
l2424 00F1 l2416 00E0 l2362 00CB
l2354 00AD l2346 0093 l2338 0084
l2370 0187 l2450 0122 l2442 010D
l2434 00FA l2426 00F2 l2418 00E4
l2364 00CF l2356 00BE l2348 00A1
l2372 0184 l2380 0023 l2444 010F
l2436 00FF l2428 00F5 l2358 00C5
l2366 00D6 l2390 0035 l2382 0025
l2374 0014 l2446 0118 l2438 0100
l2368 00D8 l2392 0045 l2384 0027
l2376 0016 l2448 011E l2394 0047
l2386 002D l2378 001D l2396 0049
l2388 0034 l2398 004D u2620 0145
u2700 00DE u2621 0144 u2701 00DD
u2630 0165 u2710 0023 u2631 0164
u2711 0022 u2640 008F u2720 0033
u2800 0108 u2641 008E u2721 0032
u2801 0107 u2810 0118 u2811 0117
u2660 00AB u2740 0045 u2661 00AA
u2741 0044 u2654 0099 u2750 0053
u2734 003E u2655 0097 u2751 0052
u2735 003C u2680 00BE u2760 005E
u2681 00BD u2761 005D u2690 00D5
u2674 00B7 u2691 00D4 u2675 00B5
u2780 0070 u2781 006F u2790 007E
u2774 0069 u2791 007D u2775 0067
_RBIE 005B _RBIF 0058 _WREN 04E2
_main 00E0 btemp 007E main@subcode 0032
start 0010 evaluate_tastatur@comcode 002C ??_AUS 0074
??_ISR 0070 __end_of_SendRc5 0081 ?_main 0070
_EEADR 009B _CARRY 0018 _CMCON 001F
i1l405 0167 _PORTA 0005 _PORTB 0006
_TRISA 0085 _TRISB 0086 pclath 000A
status 0003 wtemp0 007E __end_of_main 0129
__end_of_SendEins 018A ??_main 0030 __end_of_SendNull 0187
__size_of_evaluate_tastatur 005F _EEDATA 009A _EECON1 009C
_EECON2 009D _INTCON 000B _CountA 0020
_CountB 0022 _CountC 0024 ??_SendRc5 002C
_cycl_1 0026 _cycl_2 0028 _toggle 0079
clrloop 017D saved_w 007E __pcstackCOMMON 0070
__end_of_AN 0147 __pbssBANK0 0020 _delay_89ms 0147
?_SendEins 0070 ?_SendNull 0070 __pmaintext 00E0
__pintentry 0004 _somethingpressed 002A ??_SendEins 0076
??_SendNull 0076 _SendRc5 0011 __size_of_AUS 0010
__size_of_ISR 000B end_of_initialization 017A SendRc5@group 0076
?_delay_89ms 0070 evaluate_tastatur@a 002F evaluate_tastatur@e 002D
evaluate_tastatur@i 002E __size_of_delay_89ms 0010 start_initialization 0172
__end_of_AUS 0167 __end_of_ISR 0172 __size_of_SendEins 0003
__size_of_SendNull 0003 __pbssCOMMON 0077 __pcstackBANK0 002C
?_SendRc5 0076 __ptext300 0081 __ptext301 0147
__ptext302 0157 __ptext303 0129 __ptext304 0167
__ptext305 0000 __ptext296 0000 __ptext297 0011
__ptext298 0184 __ptext299 0187 _counterms 0077
_counterus 0078 __size_of_AN 001E interrupt_function 0004
??_delay_89ms 0074 __end_of_delay_89ms 0157 SendRc5@i 002E
_SendEins 0187 _SendNull 0184 SendRc5@command 002D
__size_of_SendRc5 0070 __size_of_main 0049 clear_ram 017C
main@help 0031 pause89ms 0147 intlevel1 0000
_OPTION_REG 0081 _evaluate_tastatur 0081 ?_evaluate_tastatur 0070
??_evaluate_tastatur 0074