I'm trying to convert CBFalconer's bin to BCD for an 8051
the first example, and I'm stuck, it almost works.
I get quite confused by loops like this
My version gives 10, 1000, 1000 instead of 10, 0101, 0101
Any hints on debugging things like this?
my code(?) is here
Thanks
martin