English Amiga Board

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

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


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?

dalton is offline  
Old 02 September 2012, 19:24   #2
Registered User

Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 771
This works on my Windows build of VASM:
fsincos.s (a0)+,fp0:fp1
clenched is offline  
Old 02 September 2012, 19:26   #3
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
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 19:36.
matthey is offline  
Old 03 September 2012, 09:54   #4
dalton's Avatar
Join Date: Jun 2006
Location: Gothenburg / Sweden
Posts: 71
Ah! Like the syntax of a two-destination div.

dalton is offline  
Old 03 September 2012, 10:35   #5

phx's Avatar
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,015
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 01:27
vasm and word alignment Den Coders. Asm / Hardware 9 07 February 2014 11:25
Help linking VASM object code clenched Coders. Asm / Hardware 2 24 May 2013 22:32
vasm 1.5 RFC phx Coders. General 30 11 December 2010 02: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 07:14.

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