[fpc-devel] FPC and Z80

Florian Klaempfl florian at freepascal.org
Mon Apr 27 18:28:12 CEST 2020


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.




More information about the fpc-devel mailing list