>> 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.
>
> The HuC is not quite a 6502. cc65 supports it sort of but the
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.
> 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.
The HuC is not quite a 6502. cc65 supports it sort of but the HuC
w
.
This sounds really like long way so C compiler would be helpful.
Regards,
Vaclav
Od: Masur Jonathan
Komu: sdcc-user@lists.sourceforge.net
Datum: 5. 9. 2012 12:23:08
Předmět: Re: [Sdcc-user] Adding support for the 6502 processor
"> Isn't the HC08 be similar enough to 6502
On 05.09.2012 19:19, Masur Jonathan wrote:
> There is also the 65C816 which has a 16-bit mode and many extra
> instructions, which is used in the Super Nintendo Entertainment System
> (SNES) video game console.
>
> It would be great to port SDCC for all variants of the 6502 family,
> although
Le 05.09.2012 12:52, Groepaz a écrit :
>
> err, no - the PCE uses a NEC "HuC6280" CPU, which is "6502 like", but contains
> a bunch of rather specific extension which can not be found in any other CPU
> (eg block copy, paging support)
>
> an actual 65C02 can be found in the NES aka famicom :)
>
> t
ject: Re: [Sdcc-user] Adding support for the 6502 processor
From: Groepaz
Date: Wed, 5 Sep 2012 12:52:24 +0200
To: sdcc-user@lists.sourceforge.net
>On Wednesday 05 September 2012, Masur Jonathan wrote:
>> > Also, as a remark, the 6502 has a derivative, the 65C02; of which
>&
On Wednesday 05 September 2012, Masur Jonathan wrote:
> > 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
> Tu
Le 05.09.2012 09:32, Sebastien Lorquet a écrit :
> Hello,
>
> It depends on the port.
>
> [...]
>
> For your port, you can have both (as for mcs51): functions flagged with
> __reentrant will use the stack convention, the others will use the overlay
> convention.
>
Yes, this sounds like the way to
Isn't the HC08 be similar enough to 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.
It might be also interesting to find out whether WDC
(http://www.westerndesigncenter.com/wdc/ )
Le 04/09/2012 20:55, Masur Jonathan a écrit :
> I am under the impression this is exactly what SDCC does - not using an
> argument stack for maximal code optimisation - at the cost to not being
> able to write re-entrant functions. But this is a very small price to
> pay for something that can
Thank you for your answer,
I'll have a look at the existing ports and try to understand the
existing ports. Their code is quite long and complex, so it'll be a
pretty big project.
Of course lots of 6502 assemblers and linkers already exists, I just
don't know if specific ones needs to be made f
On 03.09.2012 06:24, Masur Jonathan wrote:
> Hello,
>
> I am an active developer on the Nintendo Entertainment System platform,
> and currently I write all my programs in assembly language. Because this
> is long and ask for more work than writing programs in C, I am looking
> forward for a C c
I cannot offer any assistance at the moment, but I would like to state
that I would applaud the addition of a 6502 target for SDCC.
-Dave
On 09/02/2012 05:24 PM, Masur Jonathan wrote:
> Hello,
>
> I am an active developer on the Nintendo Entertainment System platform,
> and curren
Hello,
I am an active developer on the Nintendo Entertainment System platform,
and currently I write all my programs in assembly language. Because this
is long and ask for more work than writing programs in C, I am looking
forward for a C compiler which can output optimized 6502 machine code.
15 matches
Mail list logo