Ultimate Amiga

Please login or register.

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

Author Topic: Source Code Reviews and Comments  (Read 17027 times)

0 Members and 1 Guest are viewing this topic.

bruceuncle

  • AMOS Dev
  • A500
  • *****
  • Karma: 6
  • Offline Offline
  • Gender: Male
  • Posts: 425
  • WINUAE Amiga User
Re: Source Code Reviews and Comments
« Reply #15 on: May 15, 2014, 02:50:00 AM »

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!).
Logged
Repeat after me ...  "The AMOS Pro architecture is complex but it is not complicated."

gibs

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 35
Re: Source Code Reviews and Comments
« Reply #16 on: May 15, 2014, 08:03:39 AM »

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

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Source Code Reviews and Comments
« Reply #17 on: May 18, 2014, 08:44:25 PM »

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.


No 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".
« Last Edit: May 18, 2014, 08:48:03 PM by Lonewolf10 »
Logged

gibs

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 35
Re: Source Code Reviews and Comments
« Reply #18 on: May 19, 2014, 09:45:27 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 :)
Logged

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Source Code Reviews and Comments
« Reply #19 on: May 23, 2014, 07:35:52 PM »

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.
Logged
Pages: 1 [2]   Go Up
 

TinyPortal 2.2.2 © 2005-2022