<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2900.5764" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Tak jsem zkusil prelozit upraveny program s
pointery a vysledek neni o moc lepsi:</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>(PIC18STD)</FONT></DIV>
<DIV><FONT face=Arial
size=2>19:
do
{<BR>20:
Suma = Suma + *p_Pointer++;<BR> FFB4
C0FE MOVFF 0xfe, 0xfe9<BR> FFB6
FFE9 NOP<BR> FFB8
C0FF MOVFF 0xff, 0xfea<BR> FFBA
FFEA NOP<BR> FFBC
50EF MOVF 0xfef, W, ACCESS<BR>
FFBE 010F MOVLB 0xf<BR>
FFC0 273F ADDWF 0x3f, F,
BANKED<BR> FFC2 0100 MOVLB
0<BR> FFC4 2BFE INCF 0xfe, F,
BANKED<BR> FFC6 0E00 MOVLW
0<BR> FFC8 23FF ADDWFC 0xff, F,
BANKED<BR>21:
} while(Pocet_Byte--);<BR> FFCA
010F MOVLB 0xf</FONT></DIV></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Michal Gregor</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=hw_aj@zoznam.sk href="mailto:hw_aj@zoznam.sk">Andrej Jancura</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=hw-list@list.hw.cz
href="mailto:hw-list@list.hw.cz">HW-news</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, May 22, 2009 11:31 AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: C nebo ASM?</DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT><BR></DIV>Michal HW wrote / napísal(a):<BR>> PIC18
STD<BR>> A ted napsano v asembleru:<BR>>
movlw 32<BR>>
movwf Pocet_Byte<BR>> lfsr
0,Pole<BR>> clrf WREG<BR>>
Pocitej_Soucet<BR>> addwf
POSTINC0,W<BR>> decfsz
Pocet_Byre<BR>> bra Pocitej_Soucet<BR>V asembleri
si napisal toto...<BR><BR>Pocet_Byte = 32;<BR>p_Pointer = &Pole[0]<BR>Suma
= 0;<BR><BR>do {<BR>Suma = Suma + *p_Pointer++;<BR>}
while(Pocet_Byte--);<BR><BR>A.<BR><BR>_______________________________________________<BR>HW-list
mailing list - sponsored by <A
href="http://www.HW.cz">www.HW.cz</A><BR><A
href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</A><BR><A
href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</A><BR></BLOCKQUOTE></BODY></HTML>