Hi there,
I'm hoping Oliver will see this message :) I've worked a bit on a
linker configuration allowing my program to live from $803 to $3FFF and
use the HGR2 page. The program worked well using HGR1, but its code
can't live entirely between $803 and $1FFF, so it's much bigger than
needed on disk, having 8kB of zeroes on HGR1.
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 :)
Thanks!
--
Colin
https://www.colino.net/
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)