SX Microcontroller Math Method

Increment / Decrement

Best 16 bit

Translated and optimized for the Scenix SX by James Newton. Bug fix by Ted Inoue.

From Scott Dattalo

Please read the entire page before you use this code!

;inc
	dec	high	;ERROR! Read below..
	incsz	low
	 inc	high	;ERROR! Read below..


A downcounting version;
;dec
	test	low
	snz
	 dec	high
	dec	low


Comments: