There's a bug, persisting through several versions, if you enter eg. 111111111 digits it will print out how many digits will actually be computed and it won't initialize d6=kv properly.
Fix: move.w d5,d6 should be moved 2 lines up (should be before cmp.w #10,(a0) + bne.b .l21).
|