Op 2020-04-27 om 18:28 schreef Florian Klaempfl:

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.

Well, for 6502 working 16-bit ptr indirect via volatile zp memory locations needs to be implemented anyway :-)

Does that CPU have no hardware stack at all, or only limited (128/256 bytes or so?)


_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to