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

Re: GCC for 65C02



>> 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.


Absolutely right, and that's why it was developed for the 65C02 only
(electronic dictionaries and translators). But, imagine you develop
a very cool Apple2/Atari/BBC/C64/Oric... software with it, then the people
who still run real computers won't always been able to run it (hey,
there are computers where the 65xx is soldered on the board).
I don't want the nice indirect addressing mode to be removed, I would
just like you could say -b6502 or -b65C02 in order to select the type
of output.

>5 - It's likely to be a pretty big effort.
Sure, Dave MacWherter has produced something like 300kB of source
code, most of it has to be read... but hey, we can't have anything without
some effort... 8-)