[fpc-devel] FPC and Z80

Sven Barth pascaldragon at googlemail.com
Mon Apr 27 19:59:35 CEST 2020


Florian Klaempfl <florian at freepascal.org> schrieb am Mo., 27. Apr. 2020,
18:28:

> Am 27.04.2020 um 17:52 schrieb Karoly Balogh (Charlie/SGR):
> > Hi,
> >
> > On Mon, 27 Apr 2020, Sven Barth via fpc-devel wrote:
> >
> >>> Well, I'm surprised and impressed you got it to work at all...
> >>> Quite an achievement.
> >>
> >> Considering that we already support AVR as well I was rather confident
> >> here. :D Maybe in the future we can also add GameBoy support which uses
> >> some Z80/8080 hybrid? ^^'
> >
> > I have no idea, but quickly read through some docs, and it seems the
> > GameBoy CPU doesn't have IX/IY registers, which seems to be very useful
> to
> > implement some of the more complex references handling, according to what
> > Nikolay wrote earlier.
>
> Yes. IX and IY are the key for the FPC Z80 port. Without them it's
> getting really difficult. And I suspect we need to work without a normal
> stack but allocate local variables globally, so basically no recursion
> will be possible.
>

Pity... Oh, well, a topic for another time then :)

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20200427/bdaa3dec/attachment.html>


More information about the fpc-devel mailing list