English Amiga Board


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

 
 
Thread Tools
Old 18 July 2017, 20:44   #81
guy lateur
Registered User
 
guy lateur's Avatar
 
Join Date: May 2017
Location: Belgium
Age: 50
Posts: 334
Quote:
Originally Posted by Leffmann View Post
EDIT: attached GNU Make 4.1, vbcc 0.9f, vasm 1.8, and vlink 0.16
Thanks again for the binaries, Leffmann, vasm an vlink work perfectly. However, I'm having problems running vbccm68k.exe. I've made a separate thread about this here: http://eab.abime.net/showthread.php?t=87965

Anybody else experiencing this issue?
guy lateur is offline  
Old 23 July 2017, 18:02   #82
clenched
Registered User
 
Join Date: Sep 2008
Location: Gainesville U.S.A.
Posts: 771
phx - If you get a minute could you test this out on the 8-bit oldstyle modules? Check the tail end of a.out. PC is where the data would be loaded. Whenever PC (not offset into file) would surpass $8001 the pad bytes are truncated.

Change PC to 0 and the whole file is correct. Change PC to $8000 and only the first byte is correct. Z80 could assemble this as long as $ffff is never passed.
Code:
pc  set    $4000
    rept   128
    org    pc
pc  set    pc+$100
    byte   $d6
    endr
    end

Last edited by clenched; 08 July 2020 at 22:16.
clenched is offline  
Old 24 July 2017, 18:44   #83
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Thanks for reporting. Another sign-problem in the binary-output. Fixed it. Updated snapshot is available tomorrow.

BTW, this is off topic and I also have an email address.
phx is offline  
Old 27 July 2017, 10:48   #84
dalton
tulou
 
dalton's Avatar
 
Join Date: Jun 2006
Location: Gothenburg / Sweden
Posts: 88
Quote:
Originally Posted by Leffmann View Post
The makefile works fine with VS 2017 for both Alkis and myself. Otherwise, the solution needs the Windows 8.1 SDK and the Windows XP platform toolset, maybe you need to install those first, or you can edit the solution to ditch the resource scripts and use the regular Windows 10 toolset.

I also have an installer in this thread: http://eab.abime.net/showthread.php?t=83113 and if you don't need the whole thing then you can open the installer in 7-zip and just extract the executables you need.

EDIT: attached GNU Make 4.1, vbcc 0.9f, vasm 1.8, and vlink 0.16
Thanks for uploading binaries again! Really saves me a lot of trouble.
dalton is offline  
Old 24 August 2017, 09:41   #85
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,164
BTW found a minor issue. Do this and you get a "branch out of range":

Code:
      bra.b	.open
.open:
not that it is very useful but $6000 is still in range
jotd is offline  
Old 24 August 2017, 10:31   #86
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
It is not out of range, it does not exist

6000 xxxx -> BRA.W XXXX
60xx where xx != 00 -> BRA.S xx (and if 68020+ xx=FF -> BRA.L)
Toni Wilen is online now  
Old 24 August 2017, 11:30   #87
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,164
yeah ok trying to play smartass (no pun intended ). I mean $6002.
jotd is offline  
Old 24 August 2017, 11:47   #88
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
You disabled optimizations. Otherwise vasm would have told you this:
Code:
warning 2058 in line 1 of "tst.s": short-branch to following instruction turned into a nop
>       bra.b   .open
Without the possibility to change your code it can only respond with an error. "out of range" may sound strange, but the following address is also kind of "out of range" for a short-branch.
phx is offline  
Old 24 August 2017, 12:00   #89
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
Quote:
Originally Posted by jotd View Post
yeah ok trying to play smartass (no pun intended ). I mean $6002.
$6002 would have been:

bra.s .label
dc.b something,anything
.label
Toni Wilen is online now  
Old 25 August 2017, 01:27   #90
NorthWay
Registered User
 
Join Date: May 2013
Location: Grimstad / Norway
Posts: 839
I never really looked at the encoding of the instructions, but this is kinda weird... I would have expected the offset to be shifted right in the encoding so as to point to something word aligned.
So the 68000 has 128+32768 BRA encodings that result in an exception? And 1 was redefined for the 68020 for long branches?
That sounds very wasteful. Unless they were reserved for future expansions?
NorthWay 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 19:44.

Top

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