Recent

Author Topic: compiling Freepscal Files and use direct on Z80CPU without OS possible?  (Read 3173 times)

coradi

  • Full Member
  • ***
  • Posts: 148
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?
Amstrad Schneider CPC 6128
AVR8/ARM(STM32)

Edson

  • Hero Member
  • *****
  • Posts: 1296
Re: compiling Freepscal Files and use direct on Z80CPU without OS possible?
« Reply #1 on: September 19, 2017, 08:28:42 pm »
FAIK, FPC doesn't support Z80 target, by now.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Noodly

  • Jr. Member
  • **
  • Posts: 70
Re: compiling Freepscal Files and use direct on Z80CPU without OS possible?
« Reply #2 on: September 19, 2017, 08:30:18 pm »
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
Windows 10 Home, Lazarus 2.02 (svn 60954), FPC 3.04

PascalDragon

  • Hero Member
  • *****
  • Posts: 5444
  • Compiler Developer
Re: compiling Freepscal Files and use direct on Z80CPU without OS possible?
« Reply #3 on: September 29, 2017, 11:32:58 pm »
The Z80 port of FPC (here) is still Work in Progress (and I don't know how useable it already is).

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: compiling Freepscal Files and use direct on Z80CPU without OS possible?
« Reply #4 on: October 04, 2017, 06:49:08 pm »
The Z80 port of FPC (here) 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).
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

 

TinyPortal © 2005-2018