Re: [cc65] __IRQFUNC_*__

From: Adam Dunkels <adam1sics.se>
Date: 2004-09-15 10:38:06
Hi!

On Wed, 2004-09-15 at 10:01, MagerValp wrote:
> I get this when trying to compile my code with a recent snapshot:
> 
> cl65 -o rsvp.prg -C rsvp.cfg -m rsvp.map -Oirs -t c64 rsvp.o game.o deck.o pointer.o screen.o graphics.o menu.o intro.o levels.o inputline.o hiscore.o
> ld65: Warning: rsvp.cfg(10): Segment `LOWCODE' does not exist
> Unresolved external `__IRQFUNC_COUNT__' referenced in:
>   callirq.s(26)
>   crt0.s(12)
> Unresolved external `__IRQFUNC_TABLE__' referenced in:
>   callirq.s(26)
> ld65: Error: 2 unresolved external(s) found - cannot create output
> file
> make: *** [rsvp.prg] Error 1

I was bitten by this myself some time ago and and added the following
lines to the FEATURES section in the linker configuration file: 

    # condes functions with type 2 are called in the interrupt
    CONDES: segment = RODATA,
            type = 2,
            label = __IRQFUNC_TABLE__,
            count = __IRQFUNC_COUNT__;

But I don't really know what they do :-)

/adam
-- 
Adam Dunkels <adam@sics.se>
http://www.sics.se/~adam/

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Wed Sep 15 10:38:41 2004

This archive was generated by hypermail 2.1.8 : 2004-09-15 10:38:50 CEST