BigEd wrote:
Did you only have to change the loop counters?...
Cheers
Ed
That was one change, I had to change it from $0008 to $0010. Note that Bitwise's AS65 assembler right justifies 8bit values, ie a value you might see of $ee, is actually $00ee. One is allowed to present it either way to the assembler, but just realize the rules.
The other detail, was putting the entire 16 bit value into the Numberl variable. I forced Numberh to zero.
I will double check this routine now in ISim, as my circle plotting routine is still not functional.
EDIT: This is correct. After storing a value of $E100 in Numberl, and $0000 in Numberh, with the loop counter @ $0010, the returned result was $00F0 for Root variable with no other changes to the original 6502 software in this case.