|
Atari coding BBS
Re: Paulo Simoes Lance replayer |
Posted by: ljbk
|
Jun,24.2015-21:04
|
First, in any case, i will be always refering to my last source: HACKL00I.s .
From mt_init downwards inside the file, the code should not be changed.
You only need to understand the top layer up to that point.
Most of that part is to save the TOS context, set the player context and restore the TOS context
Again, procedures qinitmemory, qmalloc, qmfree and qreturnmem are my built-in memory manager.
You can remove or rewrite all that as long as you have a qmalloc and a qmfree procedure that can allocate or free memory with the parameters shown.
For example you can set your free memory to a fixed place with qinitmemory and define the size you have to play with. In fact you are only setting: zpfreemem (pointer to free memory) and zfreememsize (free memory size).
The example program uses all TOS free memory except some amount for Stack and GEM.
Now, let's look at the individual mallocs:
procedure lmod: you need to reserve space for the module unless it is loaded together with the demo or user program. But for some of the improved features (octave3_cheat), you will need more space;
procedure mt_init_Paula: you need memory for the replay buffers and more if you use trash play;
label mt_make_freq: internal table that depends on replay frequency;
label mt_make_tables2: again an internal table;
label mt_make_tables: the same;
label mt_make_frame_f: internal table that depends on replay frequency;
label ll_make_frame_f1: internal table that depends on replay frequency;
procedure mt_make_voltab: volume table;
procedure mt_make_divtab: a special volume table (same as in Lance);
procedure mt_initmkmixcode: the generated code also present in Lance but here the size is variable as it depends on a lot of parameters but it is never bigger as in Lance program;
procedure qgenvibtrem: vibrato table for Protracker handler;
So as you see there no specific and increased memory needs for this program compared to the Lance version except for the new features like BPM, trash play and octave3_cheat.
The generated code used a huge amount of memory so for a 512Kb STE you can only use small modules.
|
[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.
|