So your just after some one to test it, to see thats its still all working ok?
There is no changes etc etc, just code optimisation to reduce size?
Yes, and only this is already a big work...
One quick example with the original (20 bytes) :
_BCDtoBIN
move.w d0,d1 ; isolate one's digit
andi.w #$000F,d1
lsr.w #4,d0 ; isolate ten's digit
andi.w #$000F,d0
mulu.w #10,d0 ; multiply ten's digit
add.w d1,d0 ; add one's digit
rts
This one is faster or not (14 bytes) on a 020 ?
_BCDtoBIN
moveq #16,d1
divul.l d1,d1:d0
mulu.w #10,d0 ; multiply ten's digit
add.w d1,d0 ; add one's digit
rts
Or maybe this one (18 bytes) :
_BCDtoBIN
unpk d0,d1,#0
lsr.w #8,d1
mulu.w #10,d1
andi.w #$000F,d0
add.w d1,d0
rts
Good question, isn't it ?!