English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 02 September 2012, 19:36   #1
dalton
tulou
dalton's Avatar
 
Join Date: Jun 2006
Location: Gothenburg / Sweden
Posts: 71
vasm fsincos

Hi,

I'm trying to assemble the line "fsincos.s (a0)+,fp0,fp1" and I get the error "illegal operand types". Asm-one assembles this without woes (and it works). Does anybody know how to get vasm to compile this statement?

Cheers
Dalton
dalton is offline  
Old 02 September 2012, 20:24   #2
clenched
Registered User

 
Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 695
This works on my Windows build of VASM:
fsincos.s (a0)+,fp0:fp1
clenched is offline  
Old 02 September 2012, 20:26   #3
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
Edit:
@clenched
Verified on a 68060 using vasm and PhxAss. I disassembled the instruction in ADis and it used your format also. This format is not given in the M68000PRM but it wouldn't be the first error in this manual. This appears to be the correct format and makes more sense for the 68k.

Last edited by matthey; 02 September 2012 at 20:36.
matthey is offline  
Old 03 September 2012, 10:54   #4
dalton
tulou
dalton's Avatar
 
Join Date: Jun 2006
Location: Gothenburg / Sweden
Posts: 71
Ah! Like the syntax of a two-destination div.

Thanks!
dalton is offline  
Old 03 September 2012, 11:35   #5
phx
Natteravn

phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 1,479
In fact the M68000PRM shows the syntax with ",". But probably I chose to ignore that, because all other assemblers and disassemblers which I knew used the ":" syntax. And it also makes more sense. Two destination registers are always written with a colon in the M68k family.

Just tried Devpac, which is a good reference, and it uses the colon as well.
phx is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Latest Win32 VASM Build? bodhi Coders. Asm / Hardware 89 25 August 2017 02:27
vasm and word alignment Den Coders. Asm / Hardware 9 07 February 2014 12:25
Help linking VASM object code clenched Coders. Asm / Hardware 2 24 May 2013 23:32
vasm 1.5 RFC phx Coders. General 30 11 December 2010 03:08

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 23:59.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06218 seconds with 13 queries