<!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.6000.16825" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Toto vyliezlo z PIC16PRO</FONT></DIV><FONT
face=Arial size=2>
<DIV><BR>;test.c: 22: do {<BR>l4:<BR></DIV>
<DIV>;test.c: 23: Sum +=
*p_Pointer++;<BR> movf 12,w<BR> movwf 4<BR> movf 0,w<BR> addwf 77,f<BR> incf 12,f<BR><BR>;test.c:
24: } while(Number_of_Bytes-- !=
0);<BR> decf 13,f<BR> incfsz 13,w<BR> goto l4<BR> </FONT></DIV>
<DIV><FONT face=Arial size=2>A.</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=michalgregor@centrum.cz href="mailto:michalgregor@centrum.cz">Michal
HW</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 12:19 PM</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><FONT
face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
<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><BR><BR>__________
Informacia od ESET NOD32 Antivirus, verzia databazy 4097 (20090522)
__________<BR><BR>Tuto spravu preveril ESET NOD32 Antivirus.<BR><BR><A
href="http://www.eset.sk">http://www.eset.sk</A><BR>
<P>
<HR>
<P></P>_______________________________________________<BR>HW-list mailing
list - sponsored by
www.HW.cz<BR>Hw-list@list.hw.cz<BR>http://list.hw.cz/mailman/listinfo/hw-list<BR><BR><BR><BR>__________
Informacia od ESET NOD32 Antivirus, verzia databazy 4097 (20090522)
__________<BR><BR>Tuto spravu preveril ESET NOD32
Antivirus.<BR><BR>http://www.eset.sk<BR><BR></BLOCKQUOTE></BODY></HTML>