02 September 2012, 18:36 | #1 |
tulou
Join Date: Jun 2006
Location: Gothenburg / Sweden
Posts: 88
|
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 |
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 |
02 September 2012, 19:26 | #3 |
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 19:36. |
03 September 2012, 09:54 | #4 |
tulou
Join Date: Jun 2006
Location: Gothenburg / Sweden
Posts: 88
|
Ah! Like the syntax of a two-destination div.
Thanks! |
03 September 2012, 10:35 | #5 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,539
|
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. |
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 |
|
|