From: Regulus Berdin
movf twofour0,w
addwf prod0,f
movf twofour1,w
btfsc STATUS,c
incfsz twofour1,w
addwf prod1,f
movf twofour2,w
btfsc STATUS,c
incfsz twofour2,w
addwf prod2,f
movf twofour3,w
btfsc STATUS,c
incfsz twofour3,w
addwf prod3,f
Comments:
twofour1 w c z
255 ? 1 ?
movf twofour1,w ;255 255 1 0
btfsc STATUS,c ;do not skip
incfsz twofour1,w ;0 255 1 1
addwf prod1,f ;skipped > prod1 no changed
See also:
| file: /Techref/microchip/math/add/32brb.htm, 1KB, , updated: 2011/4/14 00:33, local time: 2012/2/10 09:23,
38.107.179.233:LOG IN |
| ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://www.piclist.com/techref/microchip/math/add/32brb.htm"> PIC Microcontoller Math Method </A> |
| Did you find what you needed? |
|
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
|
The only consistant, simple to use yet powerful development environment. It simulates real-world devices via virtual component "plugins" (LED,LCD,key,motor,TV,etc) in real time, has a syntax highlighting editor, macro assembler and disassembler. Regular updates and third-party plugins keep this software ahead of any other PIC IDE. |
.