Main Menu

Source Code Reviews and Comments

Started by bruceuncle, 12 Dec, 2012, 09:59 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

bruceuncle

Quote from: gibs on 14 May, 2014, 08:40 PM
EDIT: After hours of research, I found that it has nothing to do with the compiler or the new library, that's the good new :) It was my Banks. I have removed them before compiling and I don't have the crash anymore... Funny because there was no problem with the A1200 config.
You can erase those messages, as they are useless in this thread.
Ah, there is a known bug with Banks and the compiler.  Your banks need to be an even number of bytes long.  If not, the compiler rounds the bank length to an even number.  So, if you use a Bank say 13 bytes long and your program always assumes it's 13 bytes long, you may be in trouble after it's compiled because the compiler will round it to 14 bytes long.  So check your bank lengths.

Also check if you're using Deek/Doke/Leek/Loke anywhere.  For a 68000 cpu (A500) these MUST be on even address boundaries.  For a 68020 cpu (A1200) they can be on odd boundaries (with a slight speed penalty) but would obviously then crash an A500.

What Guru number do you get when it crashes? (if any!).
Repeat after me ...  "The AMOS Pro architecture is complex but it is not complicated."

gibs

Indeed, I was grabbing sprites and icons in an unpacked image, and to win some time on the A500 I have removed the grab part as they were stored in banks 1 (Sprites) 2 (Icons).

Maybe I spent 24 hours to find the banks were the cause of the issues  :(  :( :( I never had this kind of issue before...

So now I checked back the size, and effectively, my Icons Bank was 51 Bytes length.

No Guru, juste the error message I have reported.

Lonewolf10

#17
Quote from: bruceuncle on 15 May, 2014, 03:50 AM
What Guru number do you get when it crashes? (if any!).

He was getting #80000003 (mentioned in a previous message), which is an address error.


Quote from: gibs on 15 May, 2014, 09:03 AMNo Guru, juste the error message I have reported.

You did get a Guru. On some Amiga's it is called a "Guru Meditation", but at some point they decided to change it to a more boring (but more user friendly) "software failure".

gibs

It was on my A500+, KS3.1. I have already seen some Guru screens on it. This wasn't a Guru Meditation screen :) it was in a little OS windows :)

Lonewolf10

Quote from: gibs on 19 May, 2014, 10:45 AM
It was on my A500+, KS3.1. I have already seen some Guru screens on it. This wasn't a Guru Meditation screen :) it was in a little OS windows :)

Oh ok... never ever seen that before. Mind you, I have never used AMOS Pro (or indeed AMOS Basic) on anything other than OS 2.