Lazarus
Free Pascal => General => Topic started by: coradi on September 19, 2017, 06:11:05 pm
-
Hallo,
if I build a smal Z80 System with Ram and ROM, and write a small Programm mit FPC to set some addresslines and compile it and use than the compiles asm file and put this on the eeprom at the beginning...
Does this work?
-
FAIK, FPC doesn't support Z80 target, by now.
-
No.
FPC doesn't yet support Z80 as a target CPU.
Some independent efforts are discussed in this forum topic: https://forum.lazarus.freepascal.org/index.php?topic=36595.0
-
The Z80 port of FPC (here (https://svn.freepascal.org/cgi-bin/viewvc.cgi/branches/z80/)) is still Work in Progress (and I don't know how useable it already is).
-
The Z80 port of FPC (here (https://svn.freepascal.org/cgi-bin/viewvc.cgi/branches/z80/)) is still Work in Progress (and I don't know how useable it already is).
AFAIK it compiles, but the empty executable (PROGRAM a; BEGIN END.) is several hundreds KiB in size, and no RTL exists.
I started a compiler a few months ago but it is now in halt because I have almost no free time to work with it. Look for "z80pascal" in SourceForge or in GitHub (they're synced, but SourceForge's is the main project).