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

From: Carlos <shangri-la1teleline.es>
Date: 2011-03-31 16:57:49
Thanks guys for the fast answers!


----- Original Message ----- 
From: "Sidney Cadot" <sidney@jigsaw.nl>
To: <cc65@musoftware.de>
Sent: Thursday, March 31, 2011 2:29 PM
Subject: Re: [cc65] Assemble error with sub too large?


> 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. 



- - - AVISO  - - -
Este correo electrónico contiene información privada y confidencial. Si usted no es el destinatario del mensaje no está autorizado a leerlo, copiarlo o difundirlo. Si lo ha recibido por error, por favor contacte con el remitente y destruya su contenido. Cualquier uso adicional de este correo está estrictamente prohibido.

- - - NOTICE - - -
Privileged/confidential information may be contained in this e-mail. Any reading, copying o dissemination of this communication by persons or entities other than its intended recipient is prohibited. If you received this in error, please contact the sender and delete it. Any further use of this e-mail by you is strictly prohibited.
Nry^+-ݙݢj&yװ칻&qι{ayʇ
Received on Thu Mar 31 16:58:30 2011

This archive was generated by hypermail 2.1.8 : 2011-03-31 16:58:32 CEST