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
[z88dk-dev] Multiple entries in "list" file for a library
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.@basegfx.lst <- providing a generic "putpixel.asm" implementation
mytarget/putpixel.asm
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
> 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
> 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