Ultimate Amiga

Please login or register.

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

Author Topic: AMOS Pro compiler problem  (Read 3713 times)

0 Members and 1 Guest are viewing this topic.

BooBoo

  • Amiga Guru
  • A600
  • ****
  • Karma: 3
  • Offline Offline
  • Posts: 168
AMOS Pro compiler problem
« 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
Logged

BooBoo

  • Amiga Guru
  • A600
  • ****
  • Karma: 3
  • Offline Offline
  • Posts: 168
Re: AMOS Pro compiler problem
« Reply #1 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.
« Last Edit: April 17, 2011, 06:50:41 PM by BooBoo »
Logged

Hungry Horace

  • Amorphous Blue-Blob Man
  • Site Admin
  • A4000T
  • ******
  • Karma: 307
  • Offline Offline
  • Gender: Male
  • Posts: 3,364
  • Don't forget... Ameboid's need love too!
    • AUW
Re: AMOS Pro compiler problem
« Reply #2 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 :)
Logged
Quote from: KillerGorilla
because winuae is made of code and your amiga is made of stuff

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: AMOS Pro compiler problem
« Reply #3 on: April 17, 2011, 08:46:15 PM »

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.
Logged

BooBoo

  • Amiga Guru
  • A600
  • ****
  • Karma: 3
  • Offline Offline
  • Posts: 168
Re: AMOS Pro compiler problem
« Reply #4 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
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022