hi-tech picc

Loading thread data ...

Привет!

Fri, 30 Jan 2004 10:32:32 +0300, Dmitriy Shustov писал:

А в чём проблема? Для PIC18:

void Hren () { short x = 0 ; char y = 11 ; do { x <<= 1 ; if ( Com_RX ) x |= 1 ; } while ( -- y ) ; }

738 0408 _Hren: 742 ;terminal.c: 310: short x = 0 ; 743 040A 6AF3 clrf prodl,c 744 040C 6AF4 clrf prodh,c 745 ;terminal.c: 311: char y = 11 ; 746 040E 0E0B movlw 11 747 0410 6ED9 movwf fsr2l,c 748 0412 l56: 749 ;terminal.c: 312: do 750 ;terminal.c: 313: { 751 0412 90D8 bcf status,0,c 752 0414 36F3 rlcf prodl,f,c 753 0416 36F4 rlcf prodh,f,c 754 ;terminal.c: 315: if ( RC7 ) x |= 1 ; 755 0418 BE82 btfsc 3970,7,c ;volatile 756 041A 80F3 bsf prodl,0,c 757 ;terminal.c: 316: } 758 ;terminal.c: 317: while ( -- y ) ; 759 041C 2ED9 decfsz fsr2l,f,c 760 041E D7F9 goto l56 761 ;terminal.c: 318: } 762 0420 0012 return

Что здесь такого неэффективного?

На сайте было.

Александр Голов, Москва, snipped-for-privacy@mtu-net.ru

Reply to
Alexander Golov

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.