[cc65] ca65, 65816 and far label pointers

From: Vince Weaver <vince1deater.net>
Date: 2013-01-08 21:49:21

I'm a long time user of the ca65 assembler for Apple II work (thanks!).

Recently I've started some SNES 65816 assembly programming using ca65.

I'm trying to use the "LDA" instruction with the Absolute Long Indexed, X
addressing mode.  I can't seem to get it to work.  It would look something 
like this:

          lda     logo_begin,x

where logo_begin was forced to be a 24-bit value.

Does ca65 have some sort of syntax for "forcing" a 24-bit label in an 
instruction like this?

Currently I am using
        .byte $bf
        .faraddr logo_begin

which works but obviously doesn't look as nice.

Vince Weaver

To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jan 8 21:55:18 2013

This archive was generated by hypermail 2.1.8 : 2013-01-08 21:55:23 CET