Re: [cc65] Assemble error with sub too large?

From: Sidney Cadot <sidney1jigsaw.nl>
Date: 2011-03-31 14:29:08
Hi Carlos,

You're probably running into a branch range problem. Branches define
the jump range relative to the current instruction as a single
(signed) byte, which gives a range of [-128..127].

You can overcome this by rewriting the branch as a branch/jump combination, eg.

        ...
        BNE farAway
        ...

can be written as:

        ...
        BEQ skip
        JMP farAway
skip: ...
----------------------------------------------------------------------
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 Mar 31 14:29:14 2011

This archive was generated by hypermail 2.1.8 : 2011-03-31 14:29:17 CEST