|
Atari coding BBS
Re: Allocating an absolute add |
Posted by: nerve
|
Jul,12.2009-15:02
|
PeP, but ggn is right tho, if you want to stay a bit friendly with GEMDOS anyway :)
What can you do is, you Mxalloc() more than enough ST RAM, find the address you want it fixed to in that buffer, add the size you need to get the end of the total buffer (wasting a bit of course, but hey, that should be ok ;) ) and then Mshrink() the buffer so that it fits the bill...
Alternatively, on TOS 1.62 atleast, it seems you can Malloc() with a negative value to get all available RAM except the negative number. That way, by checking the amount of free RAM first (-1 to Malloc() ) you could Malloc() everything else, Malloc() your buffer on a predictable position, free the first buffer and get what you want.
Or probably 17 other ways :)
-Kåre
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Allocating an absolute address
|
PeP
|
Jul,11.2009-16:06
|
Re: Allocating an absolute add
|
PeP
|
Jul,11.2009-16:10
|
Re: Allocating an absolute add
|
nerve
|
Jul,11.2009-17:25
|
Re: Allocating an absolute add
|
PeP
|
Jul,11.2009-17:27
|
Re: Allocating an absolute add
|
nerve
|
Jul,11.2009-17:36
|
Re: Allocating an absolute add
|
PeP
|
Jul,11.2009-17:40
|
Re: Allocating an absolute add
|
nerve
|
Jul,11.2009-18:52
|
Re: Allocating an absolute address
|
ggn
|
Jul,12.2009-12:13
|
Re: Allocating an absolute add
|
PeP
|
Jul,12.2009-13:55
|
Re: Allocating an absolute add
|
nerve
|
Jul,12.2009-15:02
|
Re: Allocating an absolute add
|
PeP
|
Jul,14.2009-02:20
|
Re: Allocating an absolute add
|
AdamK
|
Jul,19.2009-21:47
|
Re: Allocating an absolute add
|
nerve
|
Jul,20.2009-14:37
|
Re: Allocating an absolute add
|
PeP
|
Jul,21.2009-21:43
|
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|