[z88dk-dev] Multiple entries in "list" file for a library

Bridge to the z88dk-developers mailing list
Post Reply
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

[z88dk-dev] Multiple entries in "list" file for a library

Post by stefano »

The recent introduction of a new couple of z80 computers capable of graphics resolutions > than 256 pixels convinced me to sort out a little more the legacy graphics library.

I think I asked it already but... I'd like to provide a complete default function list to be overridden where possible.

e.g. :

@basegfx.lst <- providing a generic "putpixel.asm" implementation
mytarget/putpixel.asm
..
..


..would this approach be too dirty ?



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

@basegfx.lst <- providing a generic "putpixel.asm" implementation
mytarget/putpixel.asm
Does z80asm complain about this now? If not, I think it should work but you'll have to list your overrides ahead of the base implementation.

What will work for sure is if the main library gets the base implementation and then you create a separate specialized library that is linked to ahead of the main target library in the the target's cfg file.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Post by stefano »

> Does z80asm complain about this now?
> If not, I think it should work but you'll have to list your overrides ahead of the base implementation.

It does not complain and seems to work as for my intentions if I keep the generic list at the bottom.
The size of the compiled program is not affected, but the library binary grows, so it is surely keeping both the variants.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
Post Reply