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

Date view Thread view Subject view

From: Greg Long (cc65_at_maneuveringspeed.com)
Date: 2003-03-10 00:23:50


Yeah, I did think it was a bug... but it's AOK as I was able to build
separate code and call it.  the .export command threw me for a few, but
once I learned that it was needed my externals resolved.

I see that using the assembler for things such as this is better
anyways.

Still, I felt you would like to know about my experience with it for a
bugfix.

I need to get 2.9, the Win32 binary I got from a mirror was only 2.7.1 -
didn't have 2.9.

Greg
-----Original Message-----
From: owner-cc65_at_musoftware.de [mailto:owner-cc65_at_musoftware.de] On
Behalf Of Ullrich von Bassewitz
Sent: Sunday, March 09, 2003 2:44 PM
To: cc65_at_musoftware.de
Subject: Re: [cc65] Possible bug: All labels but first are added to .s
file using inline assy



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.

----------------------------------------------------------------------
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-10 00:25:05 CET