Re: [cc65] forcing adressing mode

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2007-12-19 18:39:19
On Wed, Dec 19, 2007 at 12:34:36PM -0500, Mark J. Reed wrote:
> On Dec 19, 2007 10:39 AM, Groepaz <groepaz@gmx.net> wrote:
>
> > > > could someone remind me how i force 16 bit adressing mode? like when i
> > > > want to assemble "sta $01" as 16bit opcode?
> >
>
> Just curious - why do you want to do that?  Just future-proofing?  Or to
> allow for patching to use different address space without reassembly?  Or
> what?

It is sometimes necessary when you have a forward reference for a symbol:

        lda     foo
        foo     = $02

Because the size of foo is not known, when the first line is translated,
absolute addressing is used. Other uses include self modifying code and
special timing or code size requirements.

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 Wed Dec 19 18:39:40 2007

This archive was generated by hypermail 2.1.8 : 2007-12-19 18:39:43 CET