📄 host.lst
字号:
273 074C 3000 movlw 0
274 074D 120A 118A 263E fcall _lcd_gotoxy
275 ;host.c: 195: lcd_putstr(data2);
276 0750 303F movlw _data2
277 0751 00B0 movwf ?_lcd_putstr
278 0752 3080 movlw 128
279 0753 00B1 movwf ?_lcd_putstr+1
280 0754 120A 118A 2589 fcall _lcd_putstr
+ 120A 118A
281 0759 l35
282 ;host.c: 197: while(1)
283 ;host.c: 198: {
284 0759 08A5 movf _RC_FLAG
285 075A 1903 btfsc 3,2
286 075B 2F59 goto l35
287 ;host.c: 200: {
288 075C 01A5 clrf _RC_FLAG
289 ;host.c: 202: if(PARITY==EvenParity(RC_REG))
290 075D 1C20 btfss _PARITY/(0+8),_PARITY& (0+7)
291 075E 2F61 goto u230
292 075F 3001 movlw 1
293 0760 2F62 goto u232
294 0761 u230
295 0761 3000 movlw 0
296 0762 u232
297 0762 00F0 movwf btemp
298 0763 0826 movf _RC_REG,w
299 0764 26D3 fcall _EvenParity
300 0765 1C03 btfss 3,0
301 0766 2F69 goto u240
302 0767 3001 movlw 1
303 0768 2F6A goto u242
304 0769 u240
305 0769 3000 movlw 0
306 076A u242
307 076A 06F0 xorwf btemp
308 076B 1D03 btfss 3,2
309 076C 2F59 goto l35
310 ;host.c: 203: {
311 076D 01B0 clrf ?_lcd_gotoxy
312 076E 0AB0 incf ?_lcd_gotoxy
313 076F 3003 movlw 3
314 0770 120A 118A 263E fcall _lcd_gotoxy
315 ;host.c: 205: lcd_disphex(RC_REG);
316 0773 0826 movf _RC_REG,w
317 0774 120A 118A 25C6 fcall _lcd_disphex
+ 120A 118A
318 ;host.c: 210: Data = RC_REG+1;
319 0779 0A26 incf _RC_REG,w
320 077A 00A2 movwf _Data
321 ;host.c: 212: SingleBusTx(Data);
322 077B 26E1 fcall _SingleBusTx
323 ;host.c: 213: lcd_gotoxy(3,0);
324 077C 01B0 clrf ?_lcd_gotoxy
325 077D 3003 movlw 3
326 077E 120A 118A 263E fcall _lcd_gotoxy
327 ;host.c: 214: lcd_disphex(Data);
328 0781 0822 movf _Data,w
329 0782 120A 118A 25C6 fcall _lcd_disphex
+ 120A 118A
330 ;host.c: 215: }
331 ;host.c: 218: }
332 0787 2F59 goto l35
333
334 psect intcode
335 ;host.c: 74: void interrupt ISQ(void)
336 ;host.c: 75: {
337 000F _ISQ
338 000F int_func
339 ;host.c: 76: if(INTE && INTF)
340 000F 1A0B btfsc 11,4
341 0010 1C8B btfss 11,1
342 0011 281F goto l11
343 ;host.c: 77: {
344 0012 120B bcf 11,4
345 ;host.c: 79: T0IF = 0;
346 0013 110B bcf 11,2
347 ;host.c: 80: TmrCounter = 3;
348 0014 3003 movlw 3
349 0015 1283 bcf 3,5
350 0016 1303 bcf 3,6 ;carry unused
351 0017 00A9 movwf _TmrCounter
352 ;host.c: 81: TMR0 = 0x12;
353 0018 3012 movlw 18
354 0019 0081 movwf 1 ;volatile
355 ;host.c: 83: INT_FLAG = 1;
356 001A 01A3 clrf _INT_FLAG
357 001B 0AA3 incf _INT_FLAG
358 ;host.c: 84: RC_BUF = 0;
359 001C 01A4 clrf _RC_BUF
360 ;host.c: 85: RC7 = !RC7;
361 001D 3080 movlw 128
362 001E 0687 xorwf 7
363 001F l11
364 ;host.c: 86: }
365 001F 1D0B btfss 11,2
366 0020 285A goto l10
367 ;host.c: 88: {
368 0021 110B bcf 11,2
369 ;host.c: 90: --TmrCounter;
370 0022 1283 bcf 3,5
371 0023 1303 bcf 3,6 ;carry unused
372 0024 0BA9 decfsz _TmrCounter
373 ;host.c: 91: if(TmrCounter==0)
374 0025 2858 goto l13
375 ;host.c: 92: {
376 0026 08A3 movf _INT_FLAG
377 0027 1903 btfsc 3,2
378 0028 2854 goto l14
379 ;host.c: 94: {
380 0029 0BA1 decfsz _BitCounter
381 ;host.c: 96: if(BitCounter==0)
382 002A 283A goto l15
383 ;host.c: 97: {RC7 = !RC7;
384 002B 3080 movlw 128
385 002C 0687 xorwf 7
386 ;host.c: 98: if(RB0 != 0)
387 002D 1C06 btfss 6,0
388 002E 2833 goto l16
389 ;host.c: 99: {
390 002F 0824 movf _RC_BUF,w
391 0030 00A6 movwf _RC_REG
392 ;host.c: 101: RC_FLAG = 1;
393 0031 01A5 clrf _RC_FLAG
394 0032 0AA5 incf _RC_FLAG
395 0033 l16
396 ;host.c: 102: }
397 0033 300A movlw 10
398 0034 00A1 movwf _BitCounter
399 ;host.c: 104: INT_FLAG = 0;
400 0035 01A3 clrf _INT_FLAG
401 ;host.c: 105: INTF = 0;
402 0036 108B bcf 11,1
403 ;host.c: 106: INTE = 1;
404 0037 160B bsf 11,4
405 ;host.c: 107: RC7 = 1;
406 0038 1787 bsf 7,7
407 ;host.c: 109: }
408 0039 2854 goto l14
409 003A l15
410 ;host.c: 111: {
411 003A 0B21 decfsz _BitCounter,w
412 003B 2841 goto l18
413 ;host.c: 113: { PARITY = RB0;
414 003C 1020 bcf _PARITY/(0+8),_PARITY& (0+7)
415 003D 1C06 btfss 6,0
416 003E 2850 goto l19
417 003F 1420 bsf _PARITY/(0+8),_PARITY& (0+7)
418 ;host.c: 114: }
419 0040 2850 goto l19
420 0041 l18
421 ;host.c: 116: { RC_BUF |= ((RB0 & 0x01) << (9-B
+ itCounter));}
422 0041 3000 movlw 0
423 0042 1806 btfsc 6,0
424 0043 3001 movlw 1
425 0044 00F0 movwf btemp
426 0045 0821 movf _BitCounter,w
427 0046 3C09 sublw 9
428 0047 00F1 movwf btemp+1
429 0048 0AF1 incf btemp+1
430 0049 284C goto u134
431 004A u135
432 004A 1003 bcf 3,0
433 004B 0DF0 rlf btemp
434 004C u134
435 004C 0BF1 decfsz btemp+1
436 004D 284A goto u135
437 004E 0870 movf btemp,w
438 004F 04A4 iorwf _RC_BUF
439 0050 l19
440 ;host.c: 117: RC7 = !RC7;
441 0050 1283 bcf 3,5
442 0051 1303 bcf 3,6 ;carry unused
443 0052 3080 movlw 128
444 0053 0687 xorwf 7
445 ;host.c: 118: }
446 0054 l14
447 ;host.c: 119: }
448 0054 01A8 clrf _TX_FLAG
449 0055 0AA8 incf _TX_FLAG
450 ;host.c: 121: TmrCounter = 2;
451 0056 3002 movlw 2
452 0057 00A9 movwf _TmrCounter
453 0058 l13
454 ;host.c: 122: }
455 0058 3012 movlw 18
456 0059 0081 movwf 1 ;volatile
457 ;host.c: 124: }
458 005A l10
459 005A 1303 bcf 3,6 ;carry unused
460 005B 1283 bcf 3,5
461
462 psect intsave_0
463 0077 saved_w
464 0077 ds 1
465
466 psect intret
467 0060 0844 movf saved_pclath,w
468 0061 008A movwf 10
469 0062 int_restore
470 0062 0843 movf saved_status,w
471 0063 0083 movwf 3
472 0064 0EF7 swapf saved_w
473 0065 0E77 swapf saved_w,w
474 0066 0009 retfie
475
476 psect intentry
477 0004 int_entry
478 0004 00F7 movwf saved_w
479 0005 0803 movf 3,w
480 0006 0183 clrf 3
481 0007 00C3 movwf saved_status
482 0008 080A movf 10,w
483 0009 00C4 movwf saved_pclath
484 000A 018A clrf 10
485
486 psect intsave
487 0043 saved_status
488 0043 ds 1
489 0044 saved_pclath
490 0044 ds 1
491
492 psect text6
493 0000
494 0000
495 0000
496 0000
497 0000
498 0000
499 0000
500 0000
501 0000
502 0000
503 0000
504 0000
505 0000
506 0000
507 0000
508 0000
509 0000
510 0000
511 0000
512 0000
513 0000
514 0000
515 0000
516 0000
517 0000
518 0000
519 0000
520 0000
521 0000
522 0000
523 0000
524 0000
525 0000
526 0000
527 0000
528 0000
529 0000
530 0000
531 0000
532 0000
533 0000
534 0000
535 0000
536 0000
537 0000
538 0000
539 0000
540 0000
541 0000
542 0000
543 0000
544 0000
545 0000
546 0000
547 0000
548 0000
549 0000
550 0000
551 0000
552 0000
553 0000
554 0000
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -