[cc65] Linker output for EPROM image files

From: Christian Krüger <C.Krueger.B1web.de>
Date: 2004-04-12 10:01:11
Hi,

after a 1 year pause, I managed it to do something with
cc65 again. To be more specific it was ca65 and ld65.
(BTW: is there a more generic term for the package than cc65 ?)

I develop an EPROM image which have to fullfill a special
memory layout, where some pieces of code have to be at
fixed places.

First I' was trying something like this with ca65:

.org $400

somecodehere:
                        lda ...
                        foo
                        bar
                        ...
.org $412

somecodethere:
                        ldx ...
                        sonst
                        nix
                        ...

(some more blocks at fixes places)

I have the following problem:
When the code in block $400 is bigger than $12 bytes
I didn't get a warning that there is code which will
do some harm...

When I link this code, space between the blocks won't
filled up (e.g. with zeros) to give an suitable burn
file.

I remembered that this is maybe something for the linker
so I wrote a config file where the fixed code places
are resolved as segments and used the following for ca65:

.segment "SEG400"

somecodehere:
                        lda ...
                        see
                        above
                        ...

.segment "SEG412"

somecodethere:
                        see above...

Now, I get a warning if the segments are to small for
the instructions they carry (good), but the space
between is still not transparent for the resulting
file, so I worked around this with .RES directives
to close these gaps. But every time I changed the
code, I have to calculate/try how many bytes I have
to reserve with .RES for a consecutive image.
This is quite uncomfortable and I ask myself and
now this group if there is a more convenient way?

BTW: giving a start address to the linker to hope
that the linker fills up the memory between start
and used space didn't work either for begining gaps
(but this doesn't hurt so much).

TIA
chrisker

PS: Uz, it seems that I cannot post anymore to this list or to you,

when using my usual account at 'pace.de'. I get the following error:

----------------------8<----------------------------------

Your message

 From:  Christian Krüger <Christian.Krueger@pace.de>

 To:    cc65@musoftware.de

 Subj:  Linker output for EPROM image files
 Sent:  2004-04-05 18:00

has encountered repeatedly delivery problems.




Reason: Mailbox full
The mailbox is full because the user has exceeded a per-mailbox
administrative quota or physical capacity.

Transcript of session:
RCPT TO:<cc65@musoftware.de>
450 Client host rejected: cannot find your hostname, [217.9.112.74]

-------------------8<---------------------------------------

What can I, our sysad or you do to resolve this problem?




----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Apr 12 10:18:08 2004

This archive was generated by hypermail 2.1.8 : 2004-04-12 10:18:14 CEST