📄 24lc04q.lst
字号:
273 ;24LC04Q.C: 47: {
274 0647 1007 bcf 7,0
275 0648 l7
276 ;24LC04Q.C: 50: }
277 ;24LC04Q.C: 51: RC1=1;
278 0648 1487 bsf 7,1
279 ;24LC04Q.C: 52: dlay();
280 0649 2633 fcall _dlay
281 ;24LC04Q.C: 53: RC1=0;
282 064A 1087 bcf 7,1
283 ;24LC04Q.C: 55: k<<=1;
284 064B 1003 bcf 3,0
285 064C 0DEE rlf ?a_tx
286 064D l3
287 ;24LC04Q.C: 56: }
288 064D 03EF decf ?a_tx+1
289 064E 0F6F incfsz ?a_tx+1,w
290 064F 2E3F goto l4
291 ;24LC04Q.C: 59: TRISC0=1;
292 0650 1683 bsf 3,5
293 0651 1407 bsf 7,0
294 ;24LC04Q.C: 60: RC0=1;
295 0652 1283 bcf 3,5
296 0653 1407 bsf 7,0
297 ;24LC04Q.C: 61: dlay();
298 0654 2633 fcall _dlay
299 ;24LC04Q.C: 62: RC1=1;
300 0655 1487 bsf 7,1
301 ;24LC04Q.C: 63: dlay();
302 0656 2633 fcall _dlay
303 ;24LC04Q.C: 66: if(RC0==0)
304 0657 1C07 btfss 7,0
305 ;24LC04Q.C: 67: err_flag=0;
306 0658 10A0 bcf _err_flag/(0+8),_err_flag& (0+7)
307 ;24LC04Q.C: 68: dlay();
308 0659 2633 fcall _dlay
309 ;24LC04Q.C: 69: RC1=0;
310 065A 1087 bcf 7,1
311 ;24LC04Q.C: 73: }
312 065B 0008 return
313 ;24LC04Q.C: 75: void start(void)
314 ;24LC04Q.C: 76: {
315 065C _start
316 ;24LC04Q.C: 77: TRISC1=0;
317 065C 1683 bsf 3,5
318 065D 1303 bcf 3,6 ;carry unused
319 065E 1087 bcf 7,1
320 ;24LC04Q.C: 78: TRISC0=0;
321 065F 1007 bcf 7,0
322 ;24LC04Q.C: 79: RC0=1;
323 0660 1283 bcf 3,5
324 0661 1407 bsf 7,0
325 ;24LC04Q.C: 80: dlay();
326 0662 2633 fcall _dlay
327 ;24LC04Q.C: 81: RC1=1;
328 0663 1487 bsf 7,1
329 ;24LC04Q.C: 82: dlay();
330 0664 2633 fcall _dlay
331 ;24LC04Q.C: 83: RC0=0;
332 0665 1007 bcf 7,0
333 ;24LC04Q.C: 84: dlay();
334 0666 2633 fcall _dlay
335 ;24LC04Q.C: 85: RC1=0;
336 0667 1087 bcf 7,1
337 ;24LC04Q.C: 89: }
338 0668 0008 return
339 ;24LC04Q.C: 91: void stop(void)
340 ;24LC04Q.C: 92: {
341 0669 _stop
342 ;24LC04Q.C: 94: TRISC1=0;
343 0669 1683 bsf 3,5
344 066A 1303 bcf 3,6 ;carry unused
345 066B 1087 bcf 7,1
346 ;24LC04Q.C: 95: TRISC0=0;
347 066C 1007 bcf 7,0
348 ;24LC04Q.C: 96: RC0=0;
349 066D 1283 bcf 3,5
350 066E 1007 bcf 7,0
351 ;24LC04Q.C: 97: dlay();
352 066F 2633 fcall _dlay
353 ;24LC04Q.C: 98: RC1=1;
354 0670 1487 bsf 7,1
355 ;24LC04Q.C: 99: dlay();
356 0671 2633 fcall _dlay
357 ;24LC04Q.C: 100: RC0=1;
358 0672 1407 bsf 7,0
359 ;24LC04Q.C: 101: dlay();
360 0673 2E33 ljmp _dlay
361 ;24LC04Q.C: 105: }
362 0674 0008 return
363 ;24LC04Q.C: 107: unsigned char rx(void)
364 ;24LC04Q.C: 108: {
365 0675 _rx
366 ; _buf assigned to ?a_rx+0
367 0000 _rx$buf set ?a_rx
368 ; _temp assigned to ?a_rx+1
369 0000 _rx$temp set ?a_rx+1
370 ;24LC04Q.C: 109: unsigned char temp=8,buf;
371 0675 3008 movlw 8
372 0676 0183 clrf 3 ;select bank 0
373 0677 00EF movwf ?a_rx+1
374 ;24LC04Q.C: 110: TRISC0=1;
375 0678 1683 bsf 3,5
376 0679 1407 bsf 7,0
377 ;24LC04Q.C: 111: TRISC1=0;
378 067A 1087 bcf 7,1
379 ;24LC04Q.C: 112: RC0=1;
380 067B 1283 bcf 3,5
381 067C 1407 bsf 7,0
382 ;24LC04Q.C: 114: asm("nop");
383 067D 0000 nop ;#
384 ;24LC04Q.C: 115: while(temp--)
385 067E 2E89 goto l12
386 067F l13
387 ;24LC04Q.C: 116: {
388 067F 1487 bsf 7,1
389 ;24LC04Q.C: 118: dlay();
390 0680 2633 fcall _dlay
391 ;24LC04Q.C: 121: buf=(buf<<1)|RC0;
392 0681 1003 bcf 3,0
393 0682 1807 btfsc 7,0
394 0683 1403 bsf 3,0
395 0684 0DEE rlf ?a_rx
396 ;24LC04Q.C: 123: RC1=0;
397 0685 1087 bcf 7,1
398 ;24LC04Q.C: 125: asm("nop");
399 0686 0000 nop ;#
400 ;24LC04Q.C: 126: asm("nop");
401 0687 0000 nop ;#
402 ;24LC04Q.C: 127: asm("nop");
403 0688 0000 nop ;#
404 0689 l12
405 ;24LC04Q.C: 129: }
406 0689 03EF decf ?a_rx+1
407 068A 0F6F incfsz ?a_rx+1,w
408 068B 2E7F goto l13
409 ;24LC04Q.C: 130: return(buf);
410 068C 086E movf ?a_rx,w
411 ;24LC04Q.C: 131: }
412 068D 0008 return
413 068E _iic_read
414 ; _Start_HAddr assigned to ?a_iic_read+0
415 0000 _iic_read$Start_HAddr set ?a_iic_read
416 ; _i assigned to ?a_iic_read+2
417 0000 _iic_read$i set ?a_iic_read+2
418 ; _Start_Address assigned to ?a_iic_read+4
419 0000 _iic_read$Start_Address set ?a_iic_read+4
420 ; _Start_Bank assigned to ?a_iic_read+6
421 0000 _iic_read$Start_Bank set ?a_iic_read+6
422 ;24LC04Q.C: 202: int i;
423 068E 0183 clrf 3 ;select bank 0
424 068F 10A0 bcf _err_flag/(0+8),_err_flag& (0+7)
425 ;24LC04Q.C: 207: if (EEType==8)
426 0690 0821 movf _EEType,w
427 0691 3A08 xorlw 8
428 0692 1D03 btfss 3,2
429 0693 2ED5 goto l22
430 ;24LC04Q.C: 208: {
431 0694 0865 movf ?_iic_read+1,w
432 0695 3A80 xorlw 128
433 0696 00F2 movwf btemp
434 0697 3081 movlw 129
435 0698 0272 subwf btemp,w
436 0699 3000 movlw 0
437 ;set bank bits for (((?_iic_read+0)))
438 069A 1903 btfsc 3,2
439 069B 0264 subwf ?_iic_read,w
440 069C 1C03 btfss 3,0
441 069D 2EBB goto l23
442 ;24LC04Q.C: 210: {
443 069E 30FF movlw 255
444 069F 0564 andwf ?_iic_read,w
445 06A0 00EA movwf ?a_iic_read+4
446 06A1 01EB clrf ?a_iic_read+5
447 ;24LC04Q.C: 212: Start_Bank=Start_Buf>>8;
448 06A2 0865 movf ?_iic_read+1,w
449 06A3 00F3 movwf btemp+1
450 06A4 0864 movf ?_iic_read,w
451 06A5 00F2 movwf btemp
452 06A6 3008 movlw 8
453 06A7 00F4 movwf btemp+2
454 06A8 u125
455 06A8 0D73 rlf btemp+1,w
456 06A9 0CF3 rrf btemp+1
457 06AA 0CF2 rrf btemp
458 06AB 0BF4 decfsz btemp+2
459 06AC 2EA8 goto u125
460 06AD 0872 movf btemp,w
461 06AE 00EC movwf ?a_iic_read+6
462 06AF 0873 movf btemp+1,w
463 06B0 00ED movwf ?a_iic_read+7
464 ;24LC04Q.C: 213: Start_Bank=Start_Bank<<1;
465 06B1 1003 bcf 3,0
466 06B2 0DEC rlf ?a_iic_read+6
467 06B3 0DED rlf ?a_iic_read+7
468 ;24LC04Q.C: 215: asm("nop");
469 06B4 0000 nop ;#
470 ;24LC04Q.C: 216: asm("nop");
471 06B5 0000 nop ;#
472 ;24LC04Q.C: 217: Start_Bank=Start_Bank|0x01;
473 06B6 146C bsf ?a_iic_read+6,0
474 ;24LC04Q.C: 218: Start_Bank=Start_Bank|0xa0;
475 06B7 30A0 movlw 160
476 06B8 04EC iorwf ?a_iic_read+6
477 ;24LC04Q.C: 219: asm("nop");
478 06B9 0000 nop ;#
479 ;24LC04Q.C: 220: }
480 06BA 2EC2 goto l24
481 06BB l23
482 ;24LC04Q.C: 223: {
483 06BB 0864 movf ?_iic_read,w
484 06BC 00EA movwf ?a_iic_read+4
485 06BD 0865 movf ?_iic_read+1,w
486 06BE 00EB movwf ?a_iic_read+5
487 ;24LC04Q.C: 225: Start_Bank=0xa1;
488 06BF 30A1 movlw 161
489 06C0 00EC movwf ?a_iic_read+6
490 06C1 01ED clrf ?a_iic_read+7
491 06C2 l24
492 ;24LC04Q.C: 227: }
493 ;24LC04Q.C: 228: asm("nop");
494 06C2 0000 nop ;#
495 ;24LC04Q.C: 229: asm("nop");
496 06C3 0000 nop ;#
497 ;24LC04Q.C: 230: start( );
498 06C4 265C 120A 118A fcall _start
499 ;24LC04Q.C: 231: tx(0xa0);
500 06C7 30A0 movlw -96
501 06C8 2639 120A 118A fcall _tx
502 ;24LC04Q.C: 233: asm("nop");
503 06CB 0000 nop ;#
504 ;24LC04Q.C: 234: tx(Start_Address);
505 06CC 086A movf ?a_iic_read+4,w
506 06CD 2639 120A 118A fcall _tx
507 ;24LC04Q.C: 236: start( );
508 06D0 265C 120A 118A fcall _start
509 ;24LC04Q.C: 238: tx(Start_Bank);
510 06D3 086C movf ?a_iic_read+6,w
511 06D4 2EFF goto L2
512 ;24LC04Q.C: 239: }
513 06D5 l22
514 ;24LC04Q.C: 241: {
515 06D5 30A1 movlw 161
516 06D6 00EC movwf ?a_iic_read+6
517 06D7 01ED clrf ?a_iic_read+7
518 ;24LC04Q.C: 243: Start_Address=Start_Buf%256;
519 06D8 30FF movlw 255
520 06D9 0564 andwf ?_iic_read,w
521 06DA 00EA movwf ?a_iic_read+4
522 06DB 01EB clrf ?a_iic_read+5
523 ;24LC04Q.C: 244: Start_HAddr=Start_Buf>>8;
524 06DC 0865 movf ?_iic_read+1,w
525 06DD 00F3 movwf btemp+1
526 06DE 0864 movf ?_iic_read,w
527 06DF 00F2 movwf btemp
528 06E0 3008 movlw 8
529 06E1 00F4 movwf btemp+2
530 06E2 u135
531 06E2 0D73 rlf btemp+1,w
532 06E3 0CF3 rrf btemp+1
533 06E4 0CF2 rrf btemp
534 06E5 0BF4 decfsz btemp+2
535 06E6 2EE2 goto u135
536 06E7 0872 movf btemp,w
537 06E8 00E6 movwf ?a_iic_read
538 06E9 0873 movf btemp+1,w
539 06EA 00E7 movwf ?a_iic_read+1
540 ;24LC04Q.C: 245: start( );
541 06EB 265C 120A 118A fcall _start
542 ;24LC04Q.C: 246: tx(0xa0);
543 06EE 30A0 movlw -96
544 06EF 2639 120A 118A fcall _tx
545 ;24LC04Q.C: 248: asm("nop");
546 06F2 0000 nop ;#
547 ;24LC04Q.C: 249: tx(Start_HAddr);
548 06F3 0866 movf ?a_iic_read,w
549 06F4 2639 120A 118A fcall _tx
550 ;24LC04Q.C: 251: tx(Start_Address);
551 06F7 086A movf ?a_iic_read+4,w
552 06F8 2639 120A 118A fcall _tx
553 ;24LC04Q.C: 252: start( );
554 06FB 265C 120A 118A fcall _start
555 ;24LC04Q.C: 254: tx(Start_Bank);
556 06FE 30A1 movlw -95
557 06FF L2
558 06FF 2639 120A 118A fcall _tx
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -