[TI ASM] Speed guidelines

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

[TI ASM] Speed guidelines

Post by King Harold »

I wrote a 66 byte multiplication routine (yes, unrolled, it could be very small but it'd be slower) to multiply a by c and return the result in hl, it uses a,bc and hl.
The speed statistics are: worst case (a = 254): [309] best case (a = 1): [266]
Is that anywhere near good enough or is 266 - 309 T-states slow? (its including a ret, which takes 10 T-states, but not including the call, the pure routine would take 256 to 299 T-states)
CoBB
MCF Legend
Posts: 1601
Joined: Mon 20 Dec, 2004 8:45 am
Location: Budapest, Absurdistan
Contact:

Post by CoBB »

I’d say this is quite reasonable speed for such a routine.
King Harold
Calc King
Posts: 1513
Joined: Sat 05 Aug, 2006 7:22 am

Post by King Harold »

Ok, good, thanx

And how about U16 devide by U8 in an avarage of 740 T-states? is that ok?
Post Reply