;----------------------------------------------------------------
;
; divideNN.asm -
;
; Copyright(c) CWR 2000
;
; Author: ROGER HEAD
; Created: 02-Nov-06 8:41:42 PM
; Last change: RH 02-Nov-06 9:00:13 PM
;----------------------------------------------------------------
;Divide NBYTES by NBYTES unsigned/unsigned
;
;Maximum NBYTES is 24. It could be extended to any number of bytes,
;but this is a simple limit in an ATmega.
;
;The algorithm is a direct software implementation of a standard (and
;very simple) hardware divider, but the constraints of an 8-bit RISC
;microcontroller finish up making the code somewhat obscure.
;
;I have included a specific 32-bit unsigned/unsigned implementation
;further down, and the operation is much more apparent there than in
;this general version.
;
;This code checks only for divide-by-zero. I assume that 0