Re: [cc65] kernal patch

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2004-08-16 18:23:40
On Mon, Aug 16, 2004 at 03:40:21PM +0200, MagerValp wrote:
> which causes ca65 to halt on "beq $eafb" with a range error.

The assembler doesn't know that the code is located near enough to $eafb, it's
the linker that has the information, but not the assembler.

> Adding
>
> 	.import __PATCH_RUN__
> 	.org __PATCH_RUN__
>
> fixes the problem, but is there a more elegant solution?

Does this work? I didn't know that .org accepts non constant symbols. Looks
like I forgot to check and reject that:-)

There are some solutions, but none of them is what I would call "elegant".

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Mon Aug 16 18:23:45 2004

This archive was generated by hypermail 2.1.8 : 2004-08-16 18:23:54 CEST