Welcome, Guest. Please login or register.

Author Topic: Quick assembler question  (Read 2278 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Quick assembler question
« on: November 11, 2003, 12:35:50 AM »
Hi all,

Does anybody know if the 68040 single/double precision rounded FPU instructions such as fsmul, fsadd etc. work on 68060?
int p; // A
 

Offline iamaboringperson

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 5744
    • Show only replies by iamaboringperson
Re: Quick assembler question
« Reply #1 on: November 11, 2003, 06:44:41 AM »
From memory, I think there were a couple of multiply instructions left out.

Obviously the 68060 should fix it all up.

Does that help?



Waddya mean NO??    
 

Offline Steady

Re: Quick assembler question
« Reply #2 on: November 11, 2003, 09:50:28 AM »
Perhaps obvious, but maybe the resources here might help.

P.S. How do I embed? I thought the anchor tag was enough. Extract website from the info above until I get the embedding right.

[EDIT: Fixed URL]
 

Offline GadgetMaster

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2177
    • Show only replies by GadgetMaster
Re: Quick assembler question
« Reply #3 on: November 11, 2003, 10:06:02 AM »
Quote

Steady wrote:

P.S. How do I embed? I thought the anchor tag was enough. Extract website from the info above until I get the embedding right.
http://e-www.motorola.com/webapp/sps/library/documentationlist.jsp?rootNodeId=01&nodeId=018rH3YTLC4622&Device=MC68060&DocTypeKey=10Ksfwlk&Results=25

There! You just click the URL button and add your link. :-)

You can even keep it short
Like This
 

Offline Steady

Re: Quick assembler question
« Reply #4 on: November 11, 2003, 02:22:20 PM »
DOH!

Thanks GadgetMaster. I suffer severely from domestic blindness (can't see something that is directly in front of you.

I fixed my link now  :-D
 

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Quick assembler question
« Reply #5 on: November 11, 2003, 02:50:56 PM »
Thanks chaps ;-)
int p; // A
 

Offline PiR

  • Full Member
  • ***
  • Join Date: Apr 2003
  • Posts: 148
    • Show only replies by PiR
Re: Quick assembler question
« Reply #6 on: November 12, 2003, 11:10:45 AM »
Hi Karlos

Just checked it last night in 68060 UM. They're hardware implemented. However what do these really do is rounding the result to single/double, regardless on the current FPU control setting, AND NOT making calculations in single/double. Calculations are always done in extended precision (or even more).

I've found SGLMUL, which makes calculations in single precision, but this is 6888x only and only emulated both on 68040 and 68060.

You can find all this in the manuals  from that link to motorola site.

Good luck
 

Offline KarlosTopic starter

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Quick assembler question
« Reply #7 on: November 16, 2003, 03:30:38 AM »
@PiR

That's OK, its just that I had some code using those rounded instructions. I have rewritten it anyway so it isn't a concern now.

Anyway I got another RTFM for you all :-)

Can anybody confirm for me if repetetive indirect calls to an address such as

jsr (a0)

on the 68060 are folded out by the branch prediction unit or not? I don't have time to trawl through the 68060 User Manual just now but wondered if anybody happens to know...

Thanks :-)
int p; // A