Translated and optimized for the Scenix SX by James Newton
;from Dmitry Kiryashov
;inc
mov W, #1
add count0, W
snb C
add count1, W
;... {ed: repeat the last two lines for as wide a counter as is needed}
;dec
mov W, #1
sub count0, W
sb C
sub count1, W
;... {ed: repeat the last two lines for as wide a counter as is needed}
See also:
| file: /Techref/scenix/lib/math/incdec/gp_sx.htm, 0KB, , updated: 2004/6/10 14:40, local time: 2012/5/25 14:59,
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/scenix/lib/math/incdec/gp_sx.htm"> SX Math Increment / Decrement General Purpose</A> |
| Did you find what you needed? |
THE book for getting started with the PIC uC!
5 stars at Amazon.com
Now available from piclist.com for $34.95 ($7.50 S&H)
|
|
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! |
.