It is currently Sat Feb 22, 2020 1:24 am

 All times are UTC

 Page 1 of 1 [ 2 posts ]
 Print view Previous topic | Next topic
Author Message
 Post subject: muls cycle countPosted: Tue Feb 26, 2013 10:25 pm

Joined: Sun Feb 17, 2013 7:16 pm
Posts: 10
MOVE.L #\$12345678, D1
MOVE.L #\$12345678, D2
MULS.W D1, D2

That gives a cycle count of 50 for muls in easy68k, means n = 6. Comparing with the formula of winuae n would be 8.
0x5678 = 0101 0110 0111 1000
concatenate with a zero as lsb = 0 1010 1100 1111 0000 (17 bit)
I would count 8 ( 01, 10 ) changes too.

I am curious what is right?

0 1010 1100 1111 0000 = 01 - 01 - 01 -10 - 01 - 10 -> 6 changes
or
0 1010 1100 1111 0000 = 01 - 10 - 01 - 10 -01 -10 - 01 - 10 -> 8 changes

Top

 Post subject: Re: muls cycle countPosted: Tue Feb 26, 2013 11:45 pm

Joined: Thu Dec 16, 2004 6:42 pm
Posts: 1116
n=8 is correct.

Thank you for the feedback.

_________________
Prof. Kelly

Top

 Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending
 Page 1 of 1 [ 2 posts ]

 All times are UTC

#### Who is online

Users browsing this forum: Bing [Bot] and 5 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ EASy68K Forum    FAQ    Latest Features    EASy68K Questions    68000 Programming Questions    Wish List    Wishes Granted    Undocumented Features    Documented Features    General Discussion    EASy68K Projects