Ross Myers

Divide 16bit number with a 16bit result

Discussion created by Ross Myers on Dec 10, 2007
Latest reply on Dec 10, 2007 by Ross Myers
Hi all,
Coming from a couple of years programming on the 68332 I'm battling on the HC08 with trying to divide (by 4) a 16 bit number in RAM space and get a 16bit result. Anybody got any tips?
I did mess around a bit with the OPCode examples in the CPU08 manual but I don't seem to be getting valid results.
Thanks in advance,