Main Menu

AMOS Pro compiler problem

Started by BooBoo, 17 Apr, 2011, 06:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BooBoo

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

BooBoo

#1
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.

Hungry Horace

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 :)
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


SamuraiCrow

According to this page 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.

BooBoo

68000 problem also here http://www.ultimateamiga.com/index.php/topic,9308.0.html

Quote from: Hungry Horace on 17 Apr, 2011, 09:00 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 :)

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