English Amiga Board


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

 
 
Thread Tools
Old 11 August 2014, 17:17   #21
clenched
Registered User
 
Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 771
Here is my little laundry list of stuff. V1.7 no longer assembles the Solid Gold game. V1.6c is OK

Code:
vasmm68k_mot -Fvobj -quiet -x -DCOPPERBACK -DBOOTLOGO -DKILLOS -DTDFORMAT -I /ND
K_3.9/Include/include_i -o font.o font.asm

error 2030 in line 251 of "font.asm": displacement out of range
>       lea     -MENUFONT16W>>3(a1,d0.w),a2
make: *** [font.o] Error 1

C:\wsg>
Also on the 6502 oldstyle module I couldn't INCBIN a file > 32K. Earlier versions are the same way so maybe not a bug. It would be nice if that limit was lifted.
clenched is offline  
Old 12 August 2014, 16:36   #22
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,510
Quote:
Originally Posted by clenched View Post
Code:
error 2030 in line 251 of "font.asm": displacement out of range
>       lea     -MENUFONT16W>>3(a1,d0.w),a2
Right. I decided to make the shift-right operator unsigned, to increase DevPac compatibility, although most other assemblers shift signed. I fixed the SolidGold source...

But, I have to admit that I'm no longer convinced that this is an improvement. I am open to hear the opinion of other 68k coders.

Quote:
Also on the 6502 oldstyle module I couldn't INCBIN a file > 32K. Earlier versions are the same way so maybe not a bug. It would be nice if that limit was lifted.
That's a bug, which I didn't notice yet!
The size of a data block atom in vasm in stored using the taddr (target address) type, which is only 16-bit signed for 6502. Maybe I should just use int or size_t for that. Will think about it.
phx is offline  
Old 12 August 2014, 18:30   #23
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,797
Quote:
Originally Posted by phx View Post
Right. I decided to make the shift-right operator unsigned, to increase DevPac compatibility, although most other assemblers shift signed. I fixed the SolidGold source...

But, I have to admit that I'm no longer convinced that this is an improvement. I am open to hear the opinion of other 68k coders.
Make it a command line switch.
Thorham is offline  
Old 12 August 2014, 18:52   #24
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
What Thorham said. I'd expect signed shift to be default behaviour though.

Slightly OT: Thanks for the vasm TOS module, works great and I put it to good use for my Enduro Racer conversion!
StingRay is offline  
Old 14 August 2014, 16:18   #25
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,510
Ok, I reverted the change of V1.7, so right-shifts are signed again.
They will be unsigned in only two cases:
- the new option -unsshift was specified
- full Devpac compatibility mode (-devpac option)

Quote:
Originally Posted by StingRay View Post
Slightly OT: Thanks for the vasm TOS module, works great and I put it to good use for my Enduro Racer conversion!
Always glad to help.
The Atari scene uses vasm frequently as a cross-assembler, so I implemented TOS-support many years ago.
phx is offline  
Old 14 August 2014, 18:58   #26
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by phx View Post
Ok, I reverted the change of V1.7, so right-shifts are signed again.
Good decision!

Quote:
Originally Posted by phx View Post
Always glad to help.
The Atari scene uses vasm frequently as a cross-assembler, so I implemented TOS-support many years ago.
Well, meanwhile I got sidetracked and coded 3 demo effects for the ST using vasm! Since there is no ASM-One for Ataris and I hate Devpac with a passion I really didn't have much motivation for ST demo coding the last years, however, now that I tried vasm I can say it is extremely useful and makes cross-development really easy. Thanks again!
StingRay is offline  
Old 21 August 2014, 19:46   #27
Cyprian
Registered User
 
Join Date: Jul 2014
Location: Warsaw/Poland
Posts: 191
Hi Phx, first of all thanks for TOS and Devpac support in VASM. I use it since 2011 I am happy with it.
Well, back to my subject. I faced an issue with relocation and I'd like to report it. Where can I do that? Maybe is there any mailing list or dedicated forum?
Cyprian is offline  
Old 22 August 2014, 23:35   #28
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,510
Bug reports always directly to me, by email.
There is no mailing list. I rarely get more than one vasm-related mail per day, which I can easily handle.
phx is offline  
Old 23 August 2014, 02:30   #29
Cyprian
Registered User
 
Join Date: Jul 2014
Location: Warsaw/Poland
Posts: 191
ok, just sent to phoenixowl
Cyprian is offline  
Old 28 March 2016, 00:48   #30
clenched
Registered User
 
Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 771
phx, I hope you can help me. V1.7e is behaving differently from what I am used to. All I need is a dependable way to retrieve the program ORG value. This has worked going back some time. Red text is all that is touched. Of course the aout produced in all cases is fine.

output_bin.c
Code:
    }
    else
      pc = ULLTADDR(s->org);
      /*asm ("int $3");*/
	  printf ("%x",pc); 
When I assemble some trivial 68k program ORG $100 I don't get 100 printed anymore.
1.7c
Code:
c:\vasm>vasmm68k_mot -Fbin \100.asm
vasm 1.7c (c) in 2002-2015 Volker Barthelmann
vasm M68k/CPU32/ColdFire cpu backend 2.0f (c) 2002-2015 Frank Wille
vasm motorola syntax module 3.8 (c) 2002-2015 Frank Wille
vasm binary output module 1.8 (c) 2002-2009,2013,2015 Volker Barthelmann

seg100(acrwx2):          278 byte
100
1.7e
Code:
c:\vasm>vasmm68k_mot -Fbin \100.asm
vasm 1.7e (c) in 2002-2016 Volker Barthelmann
vasm M68k/CPU32/ColdFire cpu backend 2.1 (c) 2002-2015 Frank Wille
vasm motorola syntax module 3.9 (c) 2002-2016 Frank Wille
vasm binary output module 1.8 (c) 2002-2009,2013,2015 Volker Barthelmann

CODE(acrx2):             278 byte
0
I can still get ORG from 6502.
Code:
c:\vasm>vasm6502_oldstyle  -Fbin \nop.asm
vasm 1.7e (c) in 2002-2016 Volker Barthelmann
vasm 6502 cpu backend 0.7a (c) 2002,2006,2008-2012,2014-2015 Frank Wille
vasm oldstyle syntax module 0.12e (c) 2002-2016 Frank Wille
vasm binary output module 1.8 (c) 2002-2009,2013,2015 Volker Barthelmann

seg100(acrwx1):            2 byte
100

Last edited by clenched; 28 March 2016 at 01:52.
clenched is offline  
Old 28 March 2016, 09:47   #31
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,307
Can someone zone a working Windows binary version ? I'd like to try that

Being a developper myself, I really don't understand why everyone want to build their own version with such or such compiler really, except if you want to change things to the code (which is risky)

I suppose a lot of people use windows and cannot use stuff because of stupid recompilation. Vamos is another example, with cython, different versions of C for python compiler and I'm stuck with various error messages, whereas someone could successfully build it for windows...

(thanks for this and phxass!)

Last edited by jotd; 28 March 2016 at 09:54.
jotd is offline  
Old 28 March 2016, 12:48   #32
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,510
Quote:
Originally Posted by clenched View Post
phx, I hope you can help me. V1.7e is behaving differently from what I am used to. All I need is a dependable way to retrieve the program ORG value.
I changed the way ORG works in V1.7e, with the intention to allow absolute, relocated ORG-blocks within a normal section (Devpac supports that too). Now I have to admit that I missed something. Using multiple ORG directives in a raw binary output will no longer work this way.

So, I'm doing the following now: Whenever ORG follows a SECTION directive (or CODE, or DATA, etc.), then it works like in V1.7e, and the absolute code is embedded in that section. Otherwise I'm switching to the absolute section mode like in V1.7d and before.

Try the following patch (or wait until tomorrow's snapshot):
Code:
--- syntax/mot/syntax.c    2 Jan 2016 16:57:07 -0000    1.156
+++ syntax/mot/syntax.c    28 Mar 2016 10:39:58 -0000
@@ -12,7 +12,7 @@
    be provided by the main module.
 */
 
-char *syntax_copyright="vasm motorola syntax module 3.9 (c) 2002-2016 Frank Wille";
+char *syntax_copyright="vasm motorola syntax module 3.9a (c) 2002-2016 Frank Wille";
 hashtable *dirhash;
 char commentchar = ';';
 
@@ -495,8 +495,12 @@
     else
       syntax_error(7);  /* syntax error */
   }
-  else
-    start_rorg(parse_constexpr(&s));
+  else {
+    if (current_section!=NULL && !(current_section->flags & ABSOLUTE))
+      start_rorg(parse_constexpr(&s));
+    else
+      set_section(new_org(parse_constexpr(&s)));
+  }
 }
Quote:
Originally Posted by jotd View Post
Can someone zone a working Windows binary version ? I'd like to try that

Being a developper myself, I really don't understand why everyone want to build their own version with such or such compiler really
It is impossible for me to provide working executables for any possible host platform (I don't even have MacOSX or Windows compilers), so I'm just releasing the source.
phx is offline  
Old 28 March 2016, 16:20   #33
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,307
Source is great by all means. Well, someone should provide the windows port. I can try if other people have the same need. After all windows is a widely spread platform.
jotd is offline  
Old 28 March 2016, 16:41   #34
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
Here's the latest version of the whole VBCC tool chain, with the above patch, and GNU Make 3.82. The binaries should run on Windows XP and all later versions.

Last edited by Leffmann; 02 September 2017 at 11:13.
Leffmann is offline  
Old 28 March 2016, 19:11   #35
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,510
Quote:
Originally Posted by jotd View Post
Well, someone should provide the windows port. I can try if other people have the same need. After all windows is a widely spread platform.
I can compile for AmigaOS/MorphOS and NetBSD only.

Quote:
Originally Posted by Leffmann View Post
Here's the latest version of the whole VBCC tool chain, with the above patch, and GNU Make 3.82. The binaries should run on Windows XP and all later versions.
Tack så mycket! Much appreciated.
phx is offline  
Old 28 March 2016, 19:34   #36
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,307
That's just great!! If someone can compile VAMOS for windows too that would just be even greater
jotd is offline  
Old 28 March 2016, 20:50   #37
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,803
I did that but had to reinstall so it's lost
I remember a weird issue with 64bit, in order to build it you needed another file not available in the tools provided.

Kamelito
kamelito is offline  
Old 28 March 2016, 21:44   #38
Leffmann
 
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
Quote:
Originally Posted by jotd View Post
That's just great!! If someone can compile VAMOS for windows too that would just be even greater
Extract this into the amitools directory, and add amitools/ to your path. If it doesn't work then you will have to build the Musashi DLL on your own system.

Last edited by Leffmann; 02 September 2017 at 11:13.
Leffmann is offline  
Old 28 March 2016, 22:36   #39
clenched
Registered User
 
Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 771
Thank you phx. It's back to working just the way I like it.
clenched is offline  
Old 19 April 2016, 22:46   #40
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,307
Thanks leffman, but I really don't get the @py -2 "%~dp0\geotool" %* command line.
py is not a valid command, -2 is not a valid python option.
the rest I understand...
jotd 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
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 fsincos dalton Coders. Asm / Hardware 4 03 September 2012 10:35
vasm 1.5 RFC phx Coders. General 30 11 December 2010 02:08
Win32 Game Ports? BobRedthorp Retrogaming General Discussion 11 03 August 2003 13:56

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 02:33.

Top

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