English Amiga Board    


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

Reply
 
Thread Tools
Old 02 September 2012, 18:36   #1
dalton
tulou
 
dalton's Avatar
 
Join Date: Jun 2006
Location: Gothenburg / Sweden
Posts: 35
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   Reply With Quote
Old 02 September 2012, 19:24   #2
clenched
Registered User
 
Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 296
This works on my Windows build of VASM:
fsincos.s (a0)+,fp0:fp1
clenched is offline   Reply With Quote
Old 02 September 2012, 19:26   #3
matthey
Registered User
 
Join Date: Jan 2010
Location: Kansas
Posts: 205
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 19:36.
matthey is online now   Reply With Quote
Old 03 September 2012, 09:54   #4
dalton
tulou
 
dalton's Avatar
 
Join Date: Jun 2006
Location: Gothenburg / Sweden
Posts: 35
Ah! Like the syntax of a two-destination div.

Thanks!
dalton is offline   Reply With Quote
Old 03 September 2012, 10:35   #5
phx
Registered User
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 264
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   Reply With Quote
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
vasm 1.5 RFC phx Coders. General 30 11 December 2010 02:08


All times are GMT +2. The time now is 21:54.

-->

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Page generated in 0.11578 seconds with 11 queries