Just one remark to this. Several years ago I ported SDCC (SVN version 5568)
to ST7 and testing looked OK.
I had a look and ST7 and 6502 are very similar architectures. Same A,X,Y
registers. SP is 16bit for ST7, status bits are different, probably
instruction set and boot vectors as well.
So to start porting to 6502 from ST7 would be probably the quickest way.
Vaclav
"
Hi Jonathan,
how are your plans to support 6502 in SDCC going ?
Last week I got to TurboGrafx-16 game console and currently thinking how to
program it in C. My idea is to create HuCard with SD CARD and RAM. Simple
bootloader chooses the game from SD card, loads it into RAM and runs it.
This sounds really like long way so C compiler would be helpful.
Regards,
Vaclav
"
Apparently it is quite similar, but the HC08 has no Y register, but has
a lot of added instructions the 6502 lacks. I'll really look at the HC08
port as a base for my attempt to port for the 6502.
> Also, as a remark, the 6502 has a derivative, the 65C02; of which
> there also exists variants with "secret" (more or less officially
> supported) instructions.
Exact, the 65C02 has some extra instructions. It is used in the
TurboGraphix-16 / PC-Engine video game console.
""
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user