Anyone debug why this crashes ?
Re: Anyone debug why this crashes ?
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 
Re: Anyone debug why this crashes ?
Where is @agranlund when you need him? He solves everything, like the mere-cats.
Re: Anyone debug why this crashes ?
Vanished before xmasSteve wrote: Mon Jan 25, 2021 8:39 pm Where is @agranlund when you need him? He solves everything, like the mere-cats.
- mrbombermillzy
- Moderator

- Posts: 2347
- Joined: Sun Jun 03, 2018 7:37 pm
Re: Anyone debug why this crashes ?
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.
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.
Re: Anyone debug why this crashes ?
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).
- thorsten.otto
- Posts: 148
- Joined: Mon Nov 04, 2019 2:20 am
Re: Anyone debug why this crashes ?
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).exxos wrote: Mon Jan 25, 2021 6:12 pm So this doesn't bomb, but doesn't seem to install alt-ram either![]()
That's not really needed in this case, since the program exits right away.Write a minimalist installer that mshrink according to the TPA
Re: Anyone debug why this crashes ?
OK... But how does the code know if the number is decimal or hex then ? Or does it only accept hex ?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).
- thorsten.otto
- Posts: 148
- Joined: Mon Nov 04, 2019 2:20 am
Re: Anyone debug why this crashes ?
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).
Re: Anyone debug why this crashes ?
Not sure what you really want to achieve. First, you appeared trying to add Alternate RAM, then you want to map ROM?exxos wrote: Mon Jan 25, 2021 7:43 pm Been trying to compile MAPROM but I think it uses 030 instructionsI tried to strip out just the bits I need but its just chucking out errors and I have no idea why
![]()
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.
Re: Anyone debug why this crashes ?
All I am trying to do is do a alt-ram installer, but nothing seems to work rightmfro 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?
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.

