Re: [cc65] .bank with imported symbols

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2012-06-29 16:51:11
Hi!

On Fri, Jun 29, 2012 at 12:58:48PM +0300, thefox xofeht wrote:
> Looks like .bank pseudo-op doesn't work with imported symbols. Why is
> that? It takes a lot of usefulness out of it. Is it possible to make
> it work?

Correct, that's how it is currently implemented. The whole thing was rather
complex, that might be the reason why I didn't think it out.

It should be possible to delay the checks that are currently in the assembler
until the link stage. There's a lot of other things to do so I cannot promise
when this will happen. What you can try until then is something like

        .export         BANK_FOO = .BANK (foo)

from within the module that contains foo, and then instead of

> .import foo
> .byte <.bank( foo )

use

        .import BANK_FOO
        .byte   <BANK_FOO

I know it's not really the same, but ... see above.

Sorry for the inconvenience.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
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 Jun 29 16:51:19 2012

This archive was generated by hypermail 2.1.8 : 2012-06-29 16:51:22 CEST