[cc65] [ca65] Relative addressing across segments

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2012-08-16 22:19:25
Hello,

I just found out that a relative branch across segments does not work.
That is, the following does not compile:


        .segment "CODE1"
start:  lda #0
        jmp patch
patchback:
;         ..... some more code

        .segment "PATCH"
patch:  sta $dd01
        beq patchback


The assembler complains about the branch target out of range, although
this is not necessarily true. This depends upon the linker config.

I take this as a limitation in the object file format and/or the linker,
that is not able to handle these relative relocations. Am I right? Or
should it work?

If it is a limitation, are there plans to work on this?

Regards,
Spiro.

-- 
Spiro R. Trikaliotis
http://www.trikaliotis.net/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Thu Aug 16 22:19:53 2012

This archive was generated by hypermail 2.1.8 : 2012-08-16 22:19:56 CEST