throbscottle
Well-Known Member
Hi folks
I having a go a double dabble (or it's reverse) to convert an 8 digit unpacked BCD to binary. Rather than assign a variable name to each digit, I think I can do this:
If I use
I think I can loop through each digit by incrementing fsr and accessing indf, but how do I address the first (or any other, for that matter) digit?
Also, if I use
can I rrf my way through "output" instead of having 4 variable names to manage?
Many thanks
I having a go a double dabble (or it's reverse) to convert an 8 digit unpacked BCD to binary. Rather than assign a variable name to each digit, I think I can do this:
If I use
Code:
digits idata
digit db 1,2,3,4,5,6,7,8
myprog code
...
end
Also, if I use
Code:
output res 4 ; it needs to end up a 32bit word, whatever
Many thanks