English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. AMOS

 
 
Thread Tools
Old 15 December 2023, 09:38   #21
Retro1234
Phone Homer
 
Retro1234's Avatar
 
Join Date: Jun 2006
Location: 5150
Posts: 5,775
How long is the code? I think your just have to split it up into smaller parts for testing to determine where the bug is.
Retro1234 is offline  
Old 17 December 2023, 12:20   #22
adrazar
Registered User
 
Join Date: Feb 2017
Location: Oslo
Posts: 90
Quote:
Originally Posted by Retro1234 View Post
I think your just have to split it up into smaller parts for testing to determine where the bug is.
I have a suggestion for a concrete procedure! Binary search!

1) Create a brand new file and copy the top half of your original program.
2) For each missing procedure, create a new procedure (empty) at the bottom of the listing to replace the missing one.
3) Do similar for each missing label.
4) At this point the program should contain no errors.
5) Save the file! and try compiling.

If compiling fails, remove the last half from the new program.
If it succeeds, add the next quarter of the original program.
Then repeat from 2). It is a good idea to create a new file for each cycle, so you can easily compare the two last versions.
adrazar is offline  
Old 17 December 2023, 22:58   #23
Dh73
Dh73
 
Dh73's Avatar
 
Join Date: Nov 2021
Location: Italy
Age: 38
Posts: 1
don't give up Axel: have faith and you will succeed
Dh73 is offline  
Old 19 December 2023, 17:05   #24
axel_as
Registered User
 
axel_as's Avatar
 
Join Date: Jun 2022
Location: Italy
Posts: 10
Thumbs up The final sentence

After hundreds more unsuccessful tests, I followed the advice of a fan of mine who more than anything reminded me of a way of proceeding that I had thought of as a last resort: that is, to set up the program using the 'PROCEDURES' rather than the classic 'RETURN...GOSUB', which actually turns out to be excessive and intrusive to the extent that I have abused it, and I had not resorted to the 'procedures' solution before because I didn't want to overturn and/or reset the program from scratch.
In the end I found myself almost forced to do it, but the result of the compilation was a success!

Now I continue to implement other parts of the code, and I believe that it can be published in the first months of 2024, obviously only after the necessary and rigorous tests.
In a few days I went from despair to tranquility...



Thank you Dh73!



See you soon to all of you.
axel_as is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
AMOS Compiler problem Louk Coders. General 4 19 September 2020 21:30
opt. AMOS Pro Compiler Settings? Cylon Coders. AMOS 11 04 April 2016 22:47
Amos Compiler Difficulties amigapd support.Apps 7 07 April 2012 15:52
Request AMOS Compiler manual (Scans) MadAngus request.Other 4 12 December 2011 11:15
Amos compiler nnever2000 request.Apps 3 06 September 2006 19:13

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:09.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06979 seconds with 13 queries