[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GCC for 65C02



Fabrice Frances <frances@ensica.NOSPAM.fr> wrote in message
news:83stmt$f06$1@news.cict.fr...
> I've uploaded GCC for the 65C02 in the Software section of

> It would be great if someone adds a switch allowing to choose
> between 6502 or 65C02 code generation.

That's a nice idea, but...

1 - The 65C02 has the non-indexed addressing modes, which leave
a register (X) available for use. Removing these could make the
code a lot bigger. And that means even more in the limited memory
space of a 16-bit address bus.

2 - All the Apple emulators will emulate a 65C02, right?

3 - Even if you have a real Apple ][ you can still put a 'c02 in it.

4 - If someone might want to make a new device with a 6502, they
would probably use a C02.

5 - It's likely to be a pretty big effort.

> - there's a minimal binary distribution I compiled for Linux (you
> might have problems compiling it yourself), including a small
> awk script that translates the assembly output : the code generator
> currently generates an assembly output intended for Franklin
> Electronic Publishers' proprietary assembler.
> I took the quick and dirty path and added a small awk script in
> order to convert the assembly syntax to Archie Cobbs' Apple2
> assembler, but it would be better to modify the code generator
> itself. This work is rather related to the first one : it means
> modifying the output like above, so it would be better if the
> same guy does both works 8-)

Wow. That's cool. But yes, the compiler should generate assembler
or straight machine language itself.

Chris