[cc65] Conditional assembler question

From: Karri Kaksonen <karri1sipo.fi>
Date: 2011-01-21 07:36:04
Hi,

I would like to create two different kind of EXEHDR segments.

One would create binaries for a Lynx cart and the other for Lynx RAM.

If it is possible I would like to introduce some keyword that would then 
include the right kind of header code in the crt0.s like:

#ifdef TARGET_IS_CART
   .. asm code ..
#endif

#ifdet TARGET_IS_RAM
   .. asm code
#endif

The other way would be to create two different segments like:

EXEHDR for TARGET_IS_CART
BLLHDR for TARGET_IS_RAM

Somehow I also need to introduce a new file in libstrc/lynx for 
containing the header code for BLLHDR. And also find out how to force 
this header to appear in the final output image.

But then the user needs a little more understanding to place the BLLHDR 
segment in the right place in his config file and re-direct the EXEHDR 
segment to null.

Advice please :)
--

Karri

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Jan 21 07:36:14 2011

This archive was generated by hypermail 2.1.8 : 2011-01-21 07:36:18 CET