Anyone debug why this crashes ?

News,announcements,programming,fixes,game patches & discussions.

Moderator: troed

User avatar
exxos
Site Admin
Site Admin
Posts: 23495
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Anyone debug why this crashes ?

Post by exxos »

Been trying to compile MAPROM but I think it uses 030 instructions :( I tried to strip out just the bits I need but its just chucking out errors and I have no idea why :(

Capture.PNG
Capture.PNG (73 KiB) Viewed 3385 times
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Steve
Posts: 2570
Joined: Fri Sep 15, 2017 11:49 am

Re: Anyone debug why this crashes ?

Post by Steve »

Where is @agranlund when you need him? He solves everything, like the mere-cats.
User avatar
exxos
Site Admin
Site Admin
Posts: 23495
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Anyone debug why this crashes ?

Post by exxos »

Steve wrote: Mon Jan 25, 2021 8:39 pm Where is @agranlund when you need him? He solves everything, like the mere-cats.
Vanished before xmas :pullhair: I tried to fiddle with MAPROM but it seems to be only geared for 030 etc so I cant even get it to compile nevermind run or make changes on a 68K.. I am trying to copy over chunks I need to work on those but then it just 2 bombs when run .. so no idea :(
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
mrbombermillzy
Posts: 1441
Joined: Sun Jun 03, 2018 7:37 pm

Re: Anyone debug why this crashes ?

Post by mrbombermillzy »

Not really sure what you are trying to do in the last post, but from the screenshot it appears like you have assembly instructions in your BSS section?

If you are mucking around with ROM data, I guess the code needs to be non relocatable, which means extra precautions which may have been ripped out in the process of removing the 030 specific code.

If you chuck me what you have and explain what you are doing to try to compile (any compiler directives,etc), I can maybe look for some obvious errors.
User avatar
sporniket
Posts: 956
Joined: Sat Sep 26, 2020 9:12 pm
Location: France
Contact:

Re: Anyone debug why this crashes ?

Post by sporniket »

I'm totally ignorant in that domain, and I infer that it is not the first time you handle alt ram, so please teach me if I say something dumb :
  • Before calling maddalt, try to mxalloc from the alt-ram exclusively. It MUST fails, unless it has detected it somehow and added it to its pool (cf. comment from @mfro ). If it succeed, print an error and quit.
  • Write a minimalist installer that mshrink according to the TPA (and move the stack pointer accordingly) to minimize the footprint and then use Ptermres instead of Pterm0. I expect that memory allocation cleaning in the case of Pterm0 to not happen, thus working around a buggy memory management (cf. same of mfro comment again).
User avatar
thorsten.otto
Posts: 148
Joined: Mon Nov 04, 2019 2:20 am

Re: Anyone debug why this crashes ?

Post by thorsten.otto »

exxos wrote: Mon Jan 25, 2021 6:12 pm So this doesn't bomb, but doesn't seem to install alt-ram either :(
You have to add the "#" signs as shown in my example. Otherwise you pass the the values that happen to be found at addresses $400000 and $200000 (most likely zeroes).
Write a minimalist installer that mshrink according to the TPA
That's not really needed in this case, since the program exits right away.
User avatar
exxos
Site Admin
Site Admin
Posts: 23495
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Anyone debug why this crashes ?

Post by exxos »

thorsten.otto wrote: Tue Jan 26, 2021 7:20 am You have to add the "#" signs as shown in my example. Otherwise you pass the the values that happen to be found at addresses $400000 and $200000 (most likely zeroes).
OK... But how does the code know if the number is decimal or hex then ? Or does it only accept hex ?
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
User avatar
thorsten.otto
Posts: 148
Joined: Mon Nov 04, 2019 2:20 am

Re: Anyone debug why this crashes ?

Post by thorsten.otto »

The "$" is the hex prefix. Without it, it would be interpreted as decimal. Unlike x86 assemblers, this is not the prefix for constants, so you have to use an additional "#". You can also use a "0x" as hex prefix like in C (at least in PASM or gas, don't know if devpac accepts this, too).
User avatar
mfro
Posts: 122
Joined: Thu Dec 13, 2018 7:32 am

Re: Anyone debug why this crashes ?

Post by mfro »

exxos wrote: Mon Jan 25, 2021 7:43 pm Been trying to compile MAPROM but I think it uses 030 instructions :( I tried to strip out just the bits I need but its just chucking out errors and I have no idea why :(
Not sure what you really want to achieve. First, you appeared trying to add Alternate RAM, then you want to map ROM?

Btw., no wonder MAPROM doesn't work for you. It's indeed using 68030 PMMU instructions (since it's meant to superimpose RAM for ROM on that architecture using the MMU).

Maybe we'd be able to provide more helpful hints if we'd know more detailed what exactly you want to do?
And remember: Beethoven wrote his first symphony in C.
User avatar
exxos
Site Admin
Site Admin
Posts: 23495
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

Re: Anyone debug why this crashes ?

Post by exxos »

mfro wrote: Mon Feb 08, 2021 11:16 am Maybe we'd be able to provide more helpful hints if we'd know more detailed what exactly you want to do?
All I am trying to do is do a alt-ram installer, but nothing seems to work right :( If I do madalt, it seems ok, setup the FRB cookie, but then its like the altram is not setup...

If I just run madalt from GB6, it installs alt-ram, and I can benchmark it, but TOS just doesn't see the alt-ram.. I've looked at how monster does it, maprom, emutos, I cant see me doing anything any different.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Post Reply

Return to “SOFTWARE PROGRAMMING & DISCUSSION”