Wanderer Account closed
Registered: Apr 2003 Posts: 478 |
Division
I'd like to ask a question. I'd prefer it not become an "IFFL" thread that is so hopelessly off-topic it may as well be deleted. Just a simple question and a simple answer PLEASE :)
To the ones who remain helpful and mathematical whizes...
I need to do division for a routine I'm working on. The problem is I have to divide by various numbers, not just sets of two.
For example
LDA #$10
ASL
ASL
gives you 16/4 = 4
However I will need to divide divide by different values (eg. 5, 7, 22, etc.).
Is there such a way to load the Accumulator with a value (or X,Y) and divide it by ANY number, say from 1-200, and if so, how?
I'm very rusty on this. I can't remember a lot of the mathematical functions.
Thanks for any serious answers :)
|