Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #5116

Re: Trouble linking with ca65?

From ol.sc@web.de (Oliver Schmidt)
Newsgroups comp.sys.apple2.programmer
Subject Re: Trouble linking with ca65?
Date 2019-05-26 20:15 +0000
Organization albasani.net
Message-ID <qces48$1fl$1@news.albasani.net> (permalink)
References <554be91b-5f04-45b8-9d2c-a27e32a702d1@googlegroups.com> <qcbpmm$sd3$1@news.albasani.net> <463d173d-965c-4029-86da-48636898b6c2@googlegroups.com> <7819a962-480b-4aab-bb6b-5afea8cf664d@googlegroups.com>

Show all headers | View raw


Hi,

>> Do I have to manually relocate this data at the correct location??

Yes.

>I solved the problem by copying the DATA segments from their location after BRUN does its job, to the location specified in the linker cfg file. Using the symbols defined by the linker (__DATA_START__, __DATA_SIZE__), the task was not to difficult.

:-)

>I naively believed that, somehow, my segments would directly loaded at the place specified in the .cfg and appearing in the .map :/

That was indeed naive because when you build an asm program you get
out exactly what you put in. If you don't supply a relocation routine
then there's no.

The alternative would have been to have the cc65 tool chain create a
"large" binary that contains all the empty space up to $6000. Instead
of just zeros your binary could contain a HGR splash screen that gets
loaded this way. If you're interested in that approach see

https://github.com/cc65/cc65/blob/master/cfg/apple2-hgr.cfg
https://github.com/cc65/cc65/blob/master/testcode/lib/apple2/hgrtest.c

as a starting point.

Regards,
Oliver

Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Trouble linking with ca65? Christophe Meneboeuf <christophe.meneboeuf@gmail.com> - 2019-05-25 07:59 -0700
  Re: Trouble linking with ca65? Oliver Schmidt <ol.sc@web.de> - 2019-05-25 16:15 +0000
    Re: Trouble linking with ca65? Christophe Meneboeuf <christophe.meneboeuf@gmail.com> - 2019-05-25 09:28 -0700
      Re: Trouble linking with ca65? Antoine Vignau <antoine.vignau@laposte.net> - 2019-05-25 11:04 -0700
        Re: Trouble linking with ca65? Christophe Meneboeuf <christophe.meneboeuf@gmail.com> - 2019-05-25 12:02 -0700
          Re: Trouble linking with ca65? Antoine Vignau <antoine.vignau@laposte.net> - 2019-05-25 12:13 -0700
            Re: Trouble linking with ca65? Christophe Meneboeuf <christophe.meneboeuf@gmail.com> - 2019-05-25 12:32 -0700
              Re: Trouble linking with ca65? Steve Nickolas <usotsuki@buric.co> - 2019-05-26 03:08 -0400
                Re: Trouble linking with ca65? Michael J. Mahon <mjmahon@aol.com> - 2019-05-26 15:20 -0500
          Re: Trouble linking with ca65? schampailler@skynet.be - 2019-06-04 03:36 -0700
            Re: Trouble linking with ca65? Christophe Meneboeuf <christophe.meneboeuf@gmail.com> - 2019-06-05 11:42 -0700
      Re: Trouble linking with ca65? Christophe Meneboeuf <christophe.meneboeuf@gmail.com> - 2019-05-25 16:10 -0700
        Re: Trouble linking with ca65? Andy McFadden <thefadden@gmail.com> - 2019-05-26 08:00 -0700
        Re: Trouble linking with ca65? ol.sc@web.de (Oliver Schmidt) - 2019-05-26 20:15 +0000
  Trouble linking with ca65? Michael Pohoreski <michael.pohoreski@gmail.com> - 2019-05-29 12:20 -0700
    Trouble linking with ca65? Antoine Vignau <antoine.vignau@laposte.net> - 2019-05-29 14:55 -0700
      Trouble linking with ca65? Michael Pohoreski <michael.pohoreski@gmail.com> - 2019-05-30 09:09 -0700
        Trouble linking with ca65? Antoine Vignau <antoine.vignau@laposte.net> - 2019-05-30 10:01 -0700
          Trouble linking with ca65? lroathe@gmail.com - 2019-05-30 10:32 -0700
            Re: Trouble linking with ca65? Andy McFadden <thefadden@gmail.com> - 2019-05-31 10:34 -0700
              Re: Trouble linking with ca65? Michael Pohoreski <michael.pohoreski@gmail.com> - 2019-05-31 12:07 -0700
                Re: Trouble linking with ca65? Antoine Vignau <antoine.vignau@laposte.net> - 2019-05-31 12:18 -0700
            Re: Trouble linking with ca65? Steven Hirsch <snhirsch@gmail.com> - 2019-06-02 09:23 -0400
              Re: Trouble linking with ca65? Andy McFadden <thefadden@gmail.com> - 2019-06-02 07:44 -0700
                Re: Trouble linking with ca65? Steven Hirsch <snhirsch@gmail.com> - 2019-06-02 18:49 -0400
                Re: Trouble linking with ca65? Andy McFadden <thefadden@gmail.com> - 2019-06-03 08:19 -0700
                Re: Trouble linking with ca65? olivier.zardini@cooperteam.eu - 2019-06-03 09:29 -0700
          Re: Trouble linking with ca65? Hugh Hood <hughhood@earthlink.net> - 2019-06-02 10:33 -0500
            Re: Trouble linking with ca65? Michael J. Mahon <mjmahon@aol.com> - 2019-06-02 16:17 -0500
            Re: Trouble linking with ca65? Jeff Blakeney <CUTjeffrey_blakeney@yahoo.ca> - 2019-06-03 00:58 -0400
            Re: Trouble linking with ca65? Michael Pohoreski <michael.pohoreski@gmail.com> - 2019-06-03 07:53 -0700
              Re: Trouble linking with ca65? Andy McFadden <thefadden@gmail.com> - 2019-06-03 08:10 -0700
              Re: Trouble linking with ca65? Hugh Hood <hughhood@earthlink.net> - 2019-06-08 13:53 -0500
                Re: Trouble linking with ca65? Michael Pohoreski <michael.pohoreski@gmail.com> - 2019-06-10 06:38 -0700
        Re: Trouble linking with ca65? mmphosis <mmphosis@macgui.com> - 2019-06-01 19:41 +0000

csiph-web