Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Amos source compile ?  (Read 7565 times)

0 Members and 1 Guest are viewing this topic.

asymetrix

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 56
  • Amos Documentation
Amos source compile ?
« on: May 29, 2010, 04:39:41 PM »


Has anyone managed to compile the Amos source and compiler ?

It would be reassuring to know everything compiles, incase in future someone wants to continue to improve or add extensions.

maybe Amiblitz extensions could be added to Amos or Amiblitz with Amos extension commands !

something to think about.

cheers
Logged

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Amos source compile ?
« Reply #1 on: June 01, 2010, 08:50:19 PM »


Are you talking about AMOS Pro or AMOS: The Creator?


Regards,
Lonewolf10

Logged

asymetrix

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 56
  • Amos Documentation
Re: Amos source compile ?
« Reply #2 on: June 04, 2010, 12:45:24 AM »


I think we only have source for Amos Creator. Did anyone manage to find AmosPro source  ?

Logged

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Amos source compile ?
« Reply #3 on: June 19, 2010, 04:47:57 PM »


Just making sure we were on the same page :)

I do have the AMOS: The Creator sources, but haven't tried compiling them yet. I have a few days off work at the end of June, so will try to do so then.


Regards,
Lonewolf10

Logged

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Amos source compile ?
« Reply #4 on: June 25, 2010, 07:34:16 PM »

Hi folks,

I have managed to successfully compile AMOS 1.23 from the sources that I have, using Devpac 2's GenAm2 program with the following settings:

Program Type: Executable
Symbols Case: Independant
Debug Info: None
List: None
Assembly: Fast
Output: Disk: RAM:AMOS_1.23COMP


The following files must be in the same location:

AMOS_INS.S
B.S
BANK_LIS.S
BRANCH.S
COMPACT.S
DATAS.S
DATAS_RU.S
DISKIO.S
ECRANS.S
EDIT.S
EQU.S
EVALUE.S
EXPDEV.S
INPUTEVE.S
MEMORY.S
MENUS.S
MUSIC.S
POINTE.S
REQUEST.S
SPRITE.S
STRING.S
TOKEN.S
TOKTAB.S
VERIF.S
W.S
ZOOM.S


INPUTEVE.S must be renamed INPUTEVENT.S otherwise you will get a pass 1 fail with an error at line 7 in W.S

Load in B.S (which has code to include all the other files) and compile it.
Once compiled, copy it to a disk called AMOS_SYSTEM. Copy all files (except the AMOS1.2 file) from the AMOS 1.2 system disk to your AMOS_SYSTEM disk containing AMOS_1.23COMP. Double-click on AMOS_1.23COMP (and hit return if it has no default icon) and it will boot up! I successfully loaded in a program from the "manual" folder chapter 3 and was able to run it.

I had a quick look at compiling AMOS 1.3, but from my sources it requires 3 files from the "AMOS Pro includes" sources (which I also have). I will have a look at compiling it next week.


Regards,
Lonewolf10

Logged

asymetrix

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 56
  • Amos Documentation
Re: Amos source compile ?
« Reply #5 on: June 27, 2010, 12:30:05 AM »

this is great news !

Its good we have a verified working compilable Amos source.

The reason I ask, apart from validation, is that it would be interesting if we could add our own C extensions or even slowly port to C if we wish.

The fact is Amos Pro source code is lost, but we can attempt to upgrade the current working source closer to Amos Pro code in a more portable way.

any thoughts ?
Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Amos source compile ?
« Reply #6 on: June 29, 2010, 03:34:12 PM »

The reason I ask, apart from validation, is that it would be interesting if we could add our own C extensions or even slowly port to C if we wish.

The fact is Amos Pro source code is lost, but we can attempt to upgrade the current working source closer to Amos Pro code in a more portable way.

any thoughts ?

Hi Asymetrix,

C always uses either registers or the main stack to pass its parameters in accordance to the AmigaOS ABI.  Amos uses a non-standard call-stack independently of the main stack and therefore is incompatible with C source except by using the LibCall command to call shared library functions.  Shared libraries are better anyway because they can be used from any language on the Amiga.
Logged

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Amos source compile ?
« Reply #7 on: July 02, 2010, 05:34:35 PM »


Hi all,

I tried and failed to compile both AMOS 1.3 and the Compiler :(

Even with the "AMOS Pro includes" files:

_Equ.s
_Pointe.s
_WEqu.s
_CEqu.s
_LEqu.s


There is atleast one file missing or the variables have been renamed. The following 3 variables were initially undefined:

Switcher_Signal
Test_Cyclique
T_WFlags



After some searching through my files I found that the "Intuition-41.95" archive included some AMOS source files, which included the value for Switcher_Signal (24).

I did not bother attempting to compile the AMOS compiler since I saw it also included references to the above 3 variables. If anyone manages to find a reference to them somewhere, please let me know.


Regards,
Lonewolf10

Logged

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Amos source compile ?
« Reply #8 on: July 02, 2010, 11:48:29 PM »



During my compilation attempts of the sources I discovered something (which I'll talk about later once I have done more research) which led me to reading my (incomplete) Extension Creation guide file. Anyway, I found out where I got the "AMOS Pro includes" files!

Apparently, the following files can be found on the AMOS Pro 1.0 Tutorial disk in the Extensions folder:

|amos_includes.s
|Cequ.s
|compact.s
|equ.s
|io_Ports.s
|LEqu.s
|liboffsets.s
|Music.s
|pointe.s
|request.s
|wequ.s


Regards,
Lonewolf10

Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022