Nп/п : 6 из 47
 От   : Colin Leroy-Mira                    2:5075/128        28 июл 23 21:53:44
 К    : All                                                   28 июл 23 23:03:09
 Тема : cc65 / apple2 HGR2 linker configuration
----------------------------------------------------------------------------------
                                                                                 
@MSGID: <20230728215344.0522a00e@laptop-sigfox>
200be29d
@REPLYADDR Colin Leroy-Mira <colin@colino.net>
@REPLYTO 2:5075/128 Colin Leroy-Mira
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<20230728215344.0522a00e@laptop-sigfox>
@TZUTC: 0200
@TID: FIDOGATE-5.12-ge4e8b94
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/

--- Claws Mail 3.19.1git30 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 * Origin: A noiseless patient Spider (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх