Re: [cc65-devel] HuC6280 zero-page addressing problem.
cc65 - a freeware C compiler for 6502 based systems
Brought to you by:
gpz
|
From: John B. <jo...@te...> - 2016-10-30 19:50:41
|
On Thu, Jul 7, 2016 at 6:02 PM, John Brandwood <jo...@te...> wrote: >> From: Greg King <gregdk@us...> - 2016-07-06 05:54:07 >> >> I think that it simply is the result of expression promotion. ca65 >> promotes them in the same way that C compilers do it. When ca65 sees a >> line like this: >> >> lda (regbank + 4),y >> >> it knows that "regbank" is 1 byte (because of .importzp). Then, it uses >> GetConstAddrSize() to learn what is the width of the "4" (yes, its name >> is misleading; it should have been called "GetConstDataWidth"). Your >> previous patch said that the "4" is 2 bytes. Therefore, the result of >> that addition must be promoted to 2 bytes -- which is illegal in that >> instruction. Hi Greg ... I can see that you've made some more changes to your personal branch for the new ".setdp" instruction since I last tested it out ... but those changes still haven't been applied to the CC65 master branch. May I ask how things are going, and if there's anything that I can do to help get that new functionality adding into the main branch? |