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 (uz_at_musoftware.de)
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.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de 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