Re: [cc65] bitwise not broken in ca65?

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2011-12-31 21:09:12
Hi Uz,

* On Sat, Dec 31, 2011 at 03:13:34PM +0100 Ullrich von Bassewitz wrote:
 
> On Sat, Dec 31, 2011 at 02:28:22PM +0100, Spiro Trikaliotis wrote:
[...] 
> Won't work. Here is an example:
[...] 
> Result is 8 bit wide, but wrong if the NOT operator just works on the low
> byte.

Good point. That's the reason you are working on the cc65 package, and
not me. ;)

> > Despite this: Would you accept a patch that tries to introduce this
> > behaviour (making the creation of a viable patch my problem again, not
> > yours?)
> 
> If you come up with a solution that works with aritrary expressions and
> doesn't mess up the existing code then yes, I would be glad about such a
> patch. But I doubt that such a solution is possible given that expressions can
> be quite complex and could involve macros or pseudo functions.

Yes, I see (now). I did not see the full potential of problems that can
arise.

> I'm not sure how much work it is, since this new type has to be passed to the
> linker via the object file.

Although it looks like a fine solution, I don't like that it will
possibly introduce more work than I expected for this. Furthermore, it
introduces the potential for new errors. Thus, I would say: Although I'd
like to have it, I doubt it will be worth the effort...

So, I will go and try to fix my sources. ;)

> I wish anybody on the list a happy new year!

Same here. And especially for you, thank you for your continuous work
and support on cc65!

Regards,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                      http://vice-emu.sf.net/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sat Dec 31 21:09:34 2011

This archive was generated by hypermail 2.1.8 : 2011-12-31 21:09:38 CET