English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. C/C++

 
 
Thread Tools
Old 27 May 2020, 21:08   #21
Emufr3ak
Registered User

 
Join Date: Mar 2016
Location: Thun / Switzerland
Posts: 36
It works! I can now run binaries inside Amos. I made an Amos version of Tonis routine to fix relocations. Here it is:

Procedure P_STARTBIN[_BANKNR]
_HEADER=Start(_BANKNR)
_CODE=_HEADER+$20
_CODELENGTH=Leek(_HEADER+$1C)*4+8
_RELOC32=_CODE+_CODELENGTH
_POS=_RELOC32
If Leek(_POS)>=0
_POS=_POS+4
_RELOCOFFSET=Leek(_POS)
While _RELOCOFFSET<>0
_CODEPOS=_RELOCOFFSET+_CODE
_OFFSETVALUE=Leek(_CODEPOS)
Loke _CODEPOS,_OFFSETVALUE+_CODE
_POS=_POS+4
_RELOCOFFSET=Leek(_POS)
Wend
End If
Call _CODE
End Proc

Rem Reserve As Data 10,80000
Rem Bload "df0:a.mingw.amosbin",10

Last two lines only need to be run once. Then the binaries load automatically with amos.

Thanks to anyone who helped me with this.
Emufr3ak is offline  
Old 27 May 2020, 21:16   #22
robinsonb5
Registered User
 
Join Date: Mar 2012
Location: Norfolk, UK
Posts: 772
Great to see you got it working. I look forward to seeing what you create!
robinsonb5 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
develop AMOS code in PC/Mac slademania Coders. AMOS 6 29 November 2019 22:36
Is there any way of modularize AMOS code? darkhog Coders. AMOS 9 04 April 2017 23:54
AMOS (Editor) Source Code SparkyNZ request.Apps 4 25 March 2017 00:49
Trying to get Amos 3D running on my 600 Johan Walfridso support.Apps 4 13 March 2009 23:26
Running AMOS from HDD? Fackamato support.Apps 11 15 November 2004 21:27

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 01:35.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.06382 seconds with 14 queries