[fpc-devel] FPC and Z80
Karoly Balogh (Charlie/SGR)
charlie at scenergy.dfmk.hu
Mon Apr 27 17:52:29 CEST 2020
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. Also, it seems to be quite a few stuff missing from
it, as well as it has some extras. The question is, how far it diverges
from Z80 of course, and how that might violate some basic assumptions the
Z80 CG currently does about the ISA.
>> I suppose FPC is now probably the compiler working for the biggest
>> number of CPUs/OSes - if it wasn't already. (C excepted, probably)
> After GCC I'd assume that, too :)
GCC doesn't have most of what it supports mainline, rather in an
independenly maintained fork, plus the C library is not included in its
tree. So as far as "out of box" solutions go, FPC is quite up there.
More information about the fpc-devel