Re: [cc65] Possible bug: All labels but first are added to .s file using inline assy

Date view Thread view Subject view

From: Ullrich von Bassewitz (
Date: 2003-03-09 23:44:05

On Fri, Mar 07, 2003 at 09:17:03PM -0800, Greg Long wrote:
> The code is not ideal, but that's not the point here.  I'm using the c64
> cassette buffer as an area to communicate between assembly and C, which
> works for now. The problem is, in this example, hexoutchr label is not
> inserted into the assembly code at compile time.  I am NOT using -O to
> optimize.

This is a bug. Because the compiler doesn't generate such code, the inline
assembler doesn't handle soubroutine local label in a "jsr" instruction
correctly. The label is not marked as referenced (as it should be) and
therefore deleted later.



Ullrich von Bassewitz                        
To unsubscribe from the list send mail to with
the string "unsubscribe cc65" in the body(!) of the mail.

Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-03-09 23:44:33 CET