B byrusber New Member Oct 28, 2007 #1 Hey, i need a pic program that sums two 16 bit numbers. can you help me ? thx
Nigel Goodwin Super Moderator Most Helpful Member Oct 28, 2007 #2 Check the PICList for plenty of examples, it's really pretty simple though.
Mike - K8LH Well-Known Member Oct 28, 2007 #3 Try PICLIST.... Code: ; movf Num1L,W ; addwf Num2L,W ; movwf ResultL ; movf Num1H,W ; skpnc ; incf Num1H,W ; addwf Num2H,W ; movwf ResultH ; ;
Try PICLIST.... Code: ; movf Num1L,W ; addwf Num2L,W ; movwf ResultL ; movf Num1H,W ; skpnc ; incf Num1H,W ; addwf Num2H,W ; movwf ResultH ; ;
G GokhaN_AntaLiYa New Member Oct 28, 2007 #4 Try PicList BRo if u dont try to find it urself u cant learn anything about it babe and if u cant do that silly program so go and kill urself byrusber
Try PicList BRo if u dont try to find it urself u cant learn anything about it babe and if u cant do that silly program so go and kill urself byrusber
B byrusber New Member Oct 28, 2007 #5 Thank you very much im new here and new to pic programming .. so couldnt knew where to search about this program Do you mean "http://www.piclist.com" ?
Thank you very much im new here and new to pic programming .. so couldnt knew where to search about this program Do you mean "http://www.piclist.com" ?
B byrusber New Member Oct 28, 2007 #6 GokhaN_AntaLiYa said: Try PicList BRo if u dont try to find it urself u cant learn anything about it babe and if u cant do that silly program so go and kill urself byrusber Click to expand...
GokhaN_AntaLiYa said: Try PicList BRo if u dont try to find it urself u cant learn anything about it babe and if u cant do that silly program so go and kill urself byrusber Click to expand...
G GokhaN_AntaLiYa New Member Oct 28, 2007 #7 ohh man havent u ever used internet or how many times did u use internet
B byrusber New Member Oct 28, 2007 #9 Im not going to go in trouble with you man I really want to learn pic, thats why im here
G GokhaN_AntaLiYa New Member Oct 28, 2007 #10 lol sure u cant try to do that man=D and i thought u have never learnt it really
D Diver300 Well-Known Member Most Helpful Member Oct 28, 2007 #11 Code: Movf num1l, w Addwf num2l, f Movf num1h, w Btfsc _c Incfsz num1h, w Addwf num2h, f This is from https://www.electro-tech-online.com/custompdfs/2007/10/00617.pdf The last 4 linkes of that can be repeated as many times as wanted for longer number. Also PIC16F627 does more than a 16F84 and costs less
Code: Movf num1l, w Addwf num2l, f Movf num1h, w Btfsc _c Incfsz num1h, w Addwf num2h, f This is from https://www.electro-tech-online.com/custompdfs/2007/10/00617.pdf The last 4 linkes of that can be repeated as many times as wanted for longer number. Also PIC16F627 does more than a 16F84 and costs less