Ultimate Amiga

Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Professional Forum => Topic started by: Lonewolf10 on December 19, 2009, 10:57:54 PM

Title: Compiling problems
Post by: Lonewolf10 on December 19, 2009, 10:57:54 PM

Hi,

I'm having problems compiling a program - AMOS DEMO (attached).

I'm trying to see what it looks like when compiled, but the compiled program crashes when I try to run it. At first I thought it was to do with my own extension, so I removed that from the AMOS setup before compiling. Still no joy :(
This is the first time (I think) that I have tried using procedures in a program. Could that be it?


Regards,
Lonewolf10

Title: Re: Compiling problems
Post by: SamuraiCrow on December 20, 2009, 02:55:52 AM
It won't even run without extension S.  Is that your extension?
Title: Re: Compiling problems
Post by: Lonewolf10 on December 21, 2009, 04:33:33 PM


It won't even run without extension S.  Is that your extension?


No, my extension goes in slot 24 (Extension Y). Extension S is slot 19, which is currently setup for MusiCRAFT. The only other extension that I have that uses that slot is the JD-K3 extension. Can you give me the line number(s) that it is on? That may be the route of the problem - not all extensions compile successfully (including mine, at present!), but can work flawlessly within the editor.


Regards,
Lonewolf10

Title: Re: Compiling problems
Post by: SamuraiCrow on December 22, 2009, 04:21:03 PM
Extension S commands appear on lines 116, 129, and 134.
Extension M commands appear on lines 164, 173, and 174.
Title: Re: Compiling problems
Post by: Lonewolf10 on December 22, 2009, 05:27:48 PM
Extension S commands appear on lines 116, 129, and 134.
Extension M commands appear on lines 164, 173, and 174.

Extension M commands are Blit Clear (line 164) and F Draw (lines 173+174).
Extension S commands are Wb Prefs (line 116) and Set Wb Prefs (lines 129+134).

However I found the problem tonight. Somehow the banks were corrupted slightly. I took the banks out and reloaded in the data and all works fine when compiled now.

Thanks for your help anyway.


Regards,
Lonewolf10

Title: Re: Compiling problems
Post by: SamuraiCrow on December 23, 2009, 03:51:37 AM
You're welcome.  I'm glad you got it working.   :)