Re: [cc65] forcing adressing mode

From: <silverdr1inet.com.pl>
Date: 2007-12-19 23:04:38
On 2007-12-19, at 18:39, Ullrich von Bassewitz 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.

But that's the opposite - I was hit by this behaviour some time ago  
and I wanted to force exactly the zeropage addressing, not the "16bit"  
one. If you recall I was asking for at least a warning in such case -  
also from Cameron ;-)

----------------------------------------------------------------------
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 23:05:01 2007

This archive was generated by hypermail 2.1.8 : 2007-12-19 23:05:05 CET