All it does is run x& = Maddalt&(4194304,2097152) but when the program finishes , it will say program terminated (as expected) but then it bombs... but why ?
EDIT:
As far as I can tell, it crashes on RTS, so I assume its a stack issue..
REMINDER - Stay logged in for at least 2 hours a week to get whitelisted.
Also it helps build a picture where our "good traffic" is coming from for detection scripts.
:o)
Also it helps build a picture where our "good traffic" is coming from for detection scripts.
:o)
Anyone debug why this crashes ?
-
exxos
- Site Admin

- Posts: 28600
- Joined: 16 Aug 2017 23:19
- Location: UK
Anyone debug why this crashes ?
You do not have the required permissions to view the files attached to this post.
-
mfro
- Posts: 125
- Joined: 13 Dec 2018 07:32
Re: Anyone debug why this crashes ?
Maddalt() adds/hooks memory previously not known into internal GEMDOS memory management.
If it crashes, I would assume the added memory is either not where you told GEMDOS or it was already included in the internal management before (error checking is very simplistic, as I recall).
Other than that, it's impossible to tell without knowledge what you exactly do on what exact hardware and how it was initialised before.
If it crashes, I would assume the added memory is either not where you told GEMDOS or it was already included in the internal management before (error checking is very simplistic, as I recall).
Other than that, it's impossible to tell without knowledge what you exactly do on what exact hardware and how it was initialised before.
And remember: Beethoven wrote his first symphony in C.
-
exxos
- Site Admin

- Posts: 28600
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Anyone debug why this crashes ?
The alt-ram is where its supposed to be, I verified the RAM locations in STOS. So its there. So there shouldn't be any problem in allocating it. But it mostly seems to be when the installer quits, I get 4 bombs.
https://www.exxosforum.co.uk/forum/viewt ... &start=270
https://www.exxosforum.co.uk/forum/viewt ... &start=270
-
mfro
- Posts: 125
- Joined: 13 Dec 2018 07:32
Re: Anyone debug why this crashes ?
I would probably start with a specialised RAM test routine to make sure it works reliably?exxos wrote: 04 Apr 2020 11:22 The alt-ram is where its supposed to be, I verified the RAM locations in STOS. So its there. So there shouldn't be any problem in allocating it. But it mostly seems to be when the installer quits, I get 4 bombs.
And remember: Beethoven wrote his first symphony in C.
-
exxos
- Site Admin

- Posts: 28600
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Anyone debug why this crashes ?
Works fine when I access it from STOS.mfro wrote: 04 Apr 2020 12:40 I would probably start with a specialised RAM test routine to make sure it works reliably?
-
exxos
- Site Admin

- Posts: 28600
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Anyone debug why this crashes ?
Still don't get why it doesn't work..
All I do is x& = Maddalt&(4194304,2097152)
If I run this inside GB6, it installs and lets me run tests, but then bombs when I try and exit the program.. When I just run the line on its own...
I don't know how to install the FRB cookie, so maybe thats the problem ?
All I do is x& = Maddalt&(4194304,2097152)
If I run this inside GB6, it installs and lets me run tests, but then bombs when I try and exit the program.. When I just run the line on its own...
I don't know how to install the FRB cookie, so maybe thats the problem ?
You do not have the required permissions to view the files attached to this post.
-
exxos
- Site Admin

- Posts: 28600
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Anyone debug why this crashes ?
Tried to program this in ASM, it compiles but when I run it, I get 4 BOMBs :(
Code: Select all
move.l $200000,d1
move.l $400000,d0
move.l d1,-(sp) ; Size
move.l d0,-(sp) ; Addr
move.w #20,-(sp) ; Maddalt
trap #1 ; GEMDOS
lea 10(sp),sp-
mikro
- Posts: 825
- Joined: 28 Aug 2017 23:22
- Location: Kosice, Slovakia
Re: Anyone debug why this crashes ?
Well if that was really it, no wonder - you need to correctly terminate it - see https://freemint.github.io/tos.hyp/en/g ... tml#Pterm0. And while you are at it, adding Mshrink() at the beginning wont hurt either ;) - https://freemint.github.io/tos.hyp/en/g ... ml#Mshrink, for usage see: http://tho-otto.de/hypview/hypview.cgi? ... 8&index=35
-
thorsten.otto
- Posts: 148
- Joined: 04 Nov 2019 02:20
Re: Anyone debug why this crashes ?
That should probably read:
Code: Select all
move.l #$200000,d1 ; <--
move.l #$400000,d0 ; <--
move.l d1,-(sp) ; Size
move.l d0,-(sp) ; Addr
move.w #20,-(sp) ; Maddalt
trap #1 ; GEMDOS
lea 10(sp),sp
clr.w -(sp)
trap #1
-
exxos
- Site Admin

- Posts: 28600
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: Anyone debug why this crashes ?
Thanks..
So this doesn't bomb, but doesn't seem to install alt-ram either :(
So this doesn't bomb, but doesn't seem to install alt-ram either :(
Code: Select all
move.l $200000,-(sp) ; Size
move.l $400000,-(sp) ; Addr
move.w #20,-(sp) ; Maddalt
trap #1 ; GEMDOS
lea 10(sp),sp
move.w #0,-(sp) ; Offset 0
trap #1 ; GEMDOS
addq.l #2,sp ; Correct stackWho is online
Users browsing this forum: ClaudeBot and 1 guest