|
Atari coding BBS
Re: Paulo Simoes Lance replayer |
Posted by: joska
|
Jun,25.2015-00:20
|
I'm working with your HACK00I.S. About memory allocations - I did the following:
1. I summed up all the constant memory allocations and limited your memory handler's heap (a set up in qinitmemory) to a bit more than that.
2. The memory for the generated code is allocated with Malloc.
3. The memory for the module + the following buffer (40+ kb) is also Malloc'ed.
This does not work. I can set up a bigger heap (have tried up to 3Mb...), and also allocate memory for the generated code on the heap like you do but it doesn't make a difference. The player crash somewhere in the init/code generation code.
The only thing that "fix" this problem is to either place the heap or an empty buffer directly after the mod. The heap/buffer must be atleast 350-400kb, depending on the mod.
To work around this problem for now I'm allocating a single block that's 450kb larger than the mod, put the mod at the start of this, then the 40+ kb buffer and finally the heap. Then I set the zpfreemem and zfreememsize pointers accordingly and let your memory manager do it's job.
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Paulo Simoe's Lance replayer
|
joska
|
Jun,18.2015-13:54
|
Re: Paulo Simoe's Lance replayer
|
evil
|
Jun,18.2015-15:38
|
Re: Paulo Simoe's Lance replayer
|
joska
|
Jun,18.2015-20:22
|
Re: Paulo Simoe's Lance replayer
|
joska
|
Jun,19.2015-11:10
|
Re: Paulo Simoe's Lance replayer
|
Grazey/PHF
|
Jun,19.2015-18:52
|
Re: Paulo Simoe's Lance replayer
|
joska
|
Jun,20.2015-11:53
|
Re: Paulo Simoe's Lance replayer
|
joska
|
Jun,21.2015-22:46
|
Re: Paulo Simoe's Lance replayer
|
joska
|
Jun,22.2015-01:11
|
Re: Paulo Simoe's Lance replayer
|
mikro
|
Jun,22.2015-08:15
|
Re: Paulo Simoe's Lance replayer
|
joska
|
Jun,22.2015-09:00
|
Re: Paulo Simoe's Lance replayer
|
ljbk
|
Jun,24.2015-14:16
|
Re: Paulo Simoe's Lance replayer
|
joska
|
Jun,24.2015-15:28
|
Re: Paulo Simoes Lance replayer
|
ljbk
|
Jun,24.2015-21:04
|
Re: Paulo Simoes Lance replayer
|
joska
|
Jun,25.2015-00:20
|
Re: Paulo Simoe's Lance replayer
|
joska
|
Jun,26.2015-10:30
|
Re: Paulo Simoe's Lance replayer
|
evil
|
Jun,26.2015-12:01
|
Re: Paulo Simoe's Lance replayer
|
joska
|
Jun,26.2015-13:25
|
Re: Paulo Simoes Lance replayer
|
ljbk
|
Jun,26.2015-19:34
|
Re: Paulo Simoes Lance replayer
|
ljbk
|
Jun,26.2015-19:36
|
Re: Paulo Simoes Lance replayer
|
ljbk
|
Jun,26.2015-20:00
|
Re: Paulo Simoes Lance replayer
|
joska
|
Jun,26.2015-20:53
|
Re: Paulo Simoes Lance replayer
|
ljbk
|
Jun,26.2015-23:09
|
Re: Paulo Simoes Lance replayer
|
joska
|
Jun,28.2015-18:38
|
Re: Paulo Simoes Lance replayer
|
joska
|
Jun,29.2015-14:38
|
Re: Paulo Simoes Lance replayer
|
evil
|
Jun,27.2015-18:10
|
Re: Paulo Simoes Lance replayer
|
ljbk
|
Jun,27.2015-22:32
|
Re: Paulo Simoes Lance replayer
|
joska
|
Jun,28.2015-16:07
|
Re: Paulo Simoes Lance replayer
|
joska
|
Jun,28.2015-16:09
|
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.
|