Ultimate Amiga

Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Professional Forum => Topic started by: BooBoo on April 17, 2011, 05:19:38 PM

Title: AMOS Pro compiler problem
Post by: BooBoo on April 17, 2011, 05:19:38 PM
Hi I using AMOS PRO compiler and my intended program is only intened to run on 68020+
So its kind of a welcome side affect - But when I tried to run the Compiled program on 68000 it crashed.
exactly as described in the link below
http://www.amibay.com/showthread.php?p=99515
What causes this this? its realy annoying
Title: Re: AMOS Pro compiler problem
Post by: BooBoo on April 17, 2011, 06:42:12 PM
Seems like this is a bank Problem - This has realy anoyed me in the Past Ive had AMOS programs and been unable to shake Banks
Ive noticed that if you dont Execute your AMOS program in Amos it will be very small but once you Execute it and save the file will increase a lot. Looking at the AMOS program with a HEX editor search for AMBK you can see that Banks have been attached to the .AMOS file. Very annoying I want to save my programs without the Banks attaching themselves to the .AMOS program?

The above problem seems sorted if I save the .AMOS program as ASC removing all Attaching Banks.

Typing Erase All into Direct Mode before Saving seems to Work aswell - You notice how much smaller the .AMOS prog/File is without all the Banks attached - ill have to investigate more.
Title: Re: AMOS Pro compiler problem
Post by: Hungry Horace on April 17, 2011, 08:00:59 PM
you could put an 'erase all' at the end of your program, and just make sure you sue an in-built quit command each time rather than just breaking into the code.

that tends to help a bit :)
Title: Re: AMOS Pro compiler problem
Post by: SamuraiCrow on April 17, 2011, 08:46:15 PM
According to this page (http://www.ultimateamiga.co.uk/hosted/amos/AmosProManual/5/578.html) in the manual, most banks are permanent.  Also, be careful with work banks.  I've never gotten them to function correctly as they always use Chip RAM and don't allocate memory with the proper OS functions.
Title: Re: AMOS Pro compiler problem
Post by: BooBoo on April 17, 2011, 09:07:23 PM
68000 problem also here http://www.ultimateamiga.co.uk/index.php/topic,9308.0.html

you could put an 'erase all' at the end of your program, and just make sure you sue an in-built quit command each time rather than just breaking into the code.

that tends to help a bit :)

Thanks Id probably forget to exit that way  :)
 I think I might have spoke with you before about this but I didnt realise the point at which the Banks attache themselves to the .AMOS file is after is been run in AMOS and then Saved. So must be Erased just before saving