Increment / Decrement
General Purpose
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}
file: /Techref/scenix/lib/math/incdec/gp_sx.htm,
0KB, , updated: 2004年6月10日 14:40, local time: 2025年9月7日 08:16,
©2025 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://massmind.org/techref/scenix/lib/math/incdec/gp_sx.htm"> SX Math Increment / Decrement General Purpose</A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to massmind.org!
.