51
Amiga Software Issues and Discussion / Re: Looking for CD32 beta tester(s) for a new cd.device
« Last post by Cosmos Amiga on December 15, 2025, 12:44:55 PM »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) :
Quote
_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 ?
Quote
_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) :
Quote
_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 ?!
Recent Posts