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 13:40, local time: 2012/2/10 11:08,
38.107.179.234: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? |
|
o List host: MIT, Site host massmind.org, Top posters @20120210 Electron, V G, IVP, RussellMc, Carl Denk, Isaac Marino Bavaresco, YES NOPE9, William \Chops\ Westfield, cdb, alan.b.pearce, * Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: None at this time. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
.