I'm hoping Oliver will see this message :)
I've managed to make this linker config: >https://github.com/colinleroy/a2tools/blob/master/config/apple2enh-hgr2.cfg
It seems to work good and safe. I checked that the linker errors out if
I put too much code and it crosses the $4000 boundary; I've also
checked that malloc() does the right thing, not touching HGR
page 2 (it starts allocating at $6000 + BSS size + stack size).
I'd love a second opinion though :)
The heap starts at $6000 + BSS size. The stack starts at HIMEM and
grows downwards towards the heap.
I'd love a second opinion though :)
I don't see a problem. However, I'm wondering why you don't go the
from my perspective simpler way to load your program at $4000 and use
$803 to $2000 as additional heap.
I don't see a problem. However, I'm wondering why you don't go the
from my perspective simpler way to load your program at $4000 and use
$803 to $2000 as additional heap.
That's mostly because I didn't think of it! Thanks for the input.
[...]
Thanks!
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 165:04:15 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,521 |