Recent

Author Topic: C64 and ZX Spectrum?  (Read 1026 times)

process_1

  • Guest
C64 and ZX Spectrum?
« on: July 23, 2020, 08:36:44 pm »
I can see Atari and Amiga are already in the list, but don't know are they implemented.

Some retro calls are always present in my case. Then, what are planes to make compillers for C64 and ZX Spectrum 16/48?

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8898
  • FPC developer.
Re: C64 and ZX Spectrum?
« Reply #1 on: July 23, 2020, 09:44:09 pm »
zxspectrum is in the works in trunk. C=64 doesn't exist yet.

TRon

  • Hero Member
  • *****
  • Posts: 536
Re: C64 and ZX Spectrum?
« Reply #2 on: July 23, 2020, 10:01:51 pm »
I can see Atari and Amiga are already in the list, but don't know are they implemented.
Yes and yes, perhaps depending on your definition of implemented

winni

  • Hero Member
  • *****
  • Posts: 2005
Re: C64 and ZX Spectrum?
« Reply #3 on: July 23, 2020, 10:20:43 pm »
Hi!

In the German Forum is a guy working on a C/PM -  Z80  machine:

https://www.lazarusforum.de/viewtopic.php?f=11&t=12987

Winni

Edson

  • Hero Member
  • *****
  • Posts: 1114
Re: C64 and ZX Spectrum?
« Reply #4 on: July 23, 2020, 10:38:34 pm »
I've written a compiler, using Lazarus, for CPU 6502: https://github.com/t-edson/P65Pas
Lazarus 2.0.10 - FPC 3.2.0 - x86_64-win64 on Windows 8

PascalDragon

  • Hero Member
  • *****
  • Posts: 2424
  • Compiler Developer
Re: C64 and ZX Spectrum?
« Reply #5 on: July 24, 2020, 09:32:25 am »
I can see Atari and Amiga are already in the list, but don't know are they implemented.

Amiga is fully supported, including derivates like MorphOS and AROS. You can even develop Lazarus applications for it, though this is still quite a bit work in progress.

Atari is supported as well, though there is no Lazarus support.

Some retro calls are always present in my case. Then, what are planes to make compillers for C64 and ZX Spectrum 16/48?

For the ZX Spectrum you can see the entry for the Z80.

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1072
    • Burdjia
Re: C64 and ZX Spectrum?
« Reply #6 on: July 24, 2020, 11:47:29 am »
I see it also targets MSX-DOS.  I like MSX, it would be great to generate binary that can be used in cartriges.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

PascalDragon

  • Hero Member
  • *****
  • Posts: 2424
  • Compiler Developer
Re: C64 and ZX Spectrum?
« Reply #7 on: July 24, 2020, 12:15:10 pm »
It would require a pure MSX target that uses the MSX-BIOS functions instead of the MSX-DOS ones, but other than that it should be doable...

process_1

  • Guest
Re: C64 and ZX Spectrum?
« Reply #8 on: July 24, 2020, 09:46:42 pm »
Well, I have almost finished my own ZX Spectrum emulator with full Z80 CPU emulation, debugging, BASIC to text (and vice verse) conversion, TAP support and much more, all done from ground.

And working similar for C64, even there is quite a bit of mature emulators for both, retro nostalgic is so strong in my case, that I couldn't resist to reinvent the wheel...
« Last Edit: July 25, 2020, 06:22:58 am by process_1 »

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1072
    • Burdjia
Re: C64 and ZX Spectrum?
« Reply #9 on: July 25, 2020, 11:08:03 am »
I'm tempted to offer myself to implement the pure MSX target, but I actually don't know if I'll be able to do it, or how to do it (have some knowledge about Z80A and MSX-BIOS).  I can help testing though. :-[
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

Thaddy

  • Hero Member
  • *****
  • Posts: 10582
Re: C64 and ZX Spectrum?
« Reply #10 on: July 25, 2020, 11:14:15 am »
zxspectrum is in the works in trunk. C=64 doesn't exist yet.
Actually, Vladimir Kladov (principle author of KOL) wrote a good emulator. It may be a good starting point.
There are also good 6502 emulators already in Pascal. (with some 6510 support, but alas not the SID afaik)
But emulators are not native code, of course. ( I still use the real deal C64 with assembler and BASIC and FORTH, often around Christmas)
« Last Edit: July 25, 2020, 11:17:12 am by Thaddy »

PascalDragon

  • Hero Member
  • *****
  • Posts: 2424
  • Compiler Developer
Re: C64 and ZX Spectrum?
« Reply #11 on: July 26, 2020, 10:56:39 pm »
I'm tempted to offer myself to implement the pure MSX target, but I actually don't know if I'll be able to do it, or how to do it (have some knowledge about Z80A and MSX-BIOS).  I can help testing though. :-[

You can basically orient yourself at what I had done to implement MSX-DOS. The basic support was done in revisions 45596 to 45604. Please note that the MSX-DOS target itself is still Work-In-Progress and buggy. Feel free to ask questions either on fpc-devel or in the FPC development subforum.

 

TinyPortal © 2005-2018