-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Z80 version of Snek? #63
Comments
MCHobby ***@***.***> writes:
Hi,
It is just a question about feasibility.
Could the Snek could be compiled for Z80 based system? (having 64K
based RAM, 32K ROM at most, 8 bits CPU).
Definitely. It runs great on atmega 328p processors and those have 32kB
of flash and only 2kB of RAM. Do you have a target board in mind?
…--
-keith
|
I believe the lack of a GCC compatible C compiler for Z80 would be a problem. There exists Z88DK as a C compiler for Z80, but I don't know if that is capable enough. The target system could be a popular CP/M computer or emulator e.g. https://github.com/udo-munk/z80pack. |
Hi, Presently, I'm just discovering the RC2014 ecosystem, hardware and programming. I want to make some assembler to renew with my young time (when Internet was not existing yet and C64 ressources hard to find). |
https://github.com/agn453/HI-TECH-Z80-C still gets updates. Especially have a look at https://github.com/agn453/HI-TECH-Z80-C/blob/master/overlays/OVREADME.TXT as using overlays may free some more RAM if not all code is needed at every time, e.g. REPL-only stuff versus running a script. |
From what I know about it, the Z88DK can be used from a Linux machine to compile native Z80 (and probably CP/M based Z80) C and assembler. John's is building a Z80 Retro board from scratch (Hardware, Bios, etc) to boot from SD Card. It also explains how it setup the compiling environment on a Raspberry-Pi. There are also several videos around the CP/M 2.2 implementation. |
I think any compiler that is c99 compatible will work -- I just did a brief experiment with one of the samd21 targets adding |
Would it be possible to run it on this? https://github.com/OLIMEX/AgonLight2 |
I suspect it could be made to work; finding a C compiler that supports C99 would be the first step. |
I am new to Z80, or at least thinking about doing anything other than playing games on them as a kid, but would any of this help? https://k1.spdns.de/Develop/Projects/zasm/Documentation/z86.htm https://github.com/z88dk/z88dk/wiki#newlib Partial C99 I think these boards are going to be quite popular Pi Hut and Mouser are both selling them. |
Targetting one brand of board only would be ignoring >99% of the Z80 digitope. A CP/M version would be nice. These 2 variants would cover most of the existing Z80 systems while maybe not using every feature of every board. |
Correct me if I am wrong, but wouldn't there need to be a port for the Z80 in the "chips" part of the code before one could consider targeting a specific board? Is this very difficult to do for someone who knows what they're doing? Adding in AgonLight afterwards would, as far as I can tell, require inline assembly to interact with the MOS API that handles most I/O, graphics, and storage. I would have happily had a go at testing compilers myself, but generating a port for the chip is beyond me, getting it to work with the board afterwards seems more achievable for me to try to help with. Python on a Z80, come on, you know you want to :-)) |
Hi,
It is just a question about feasibility.
Could the Snek could be compiled for Z80 based system? (having 64K based RAM, 32K ROM at most, 8 bits CPU).
Thanks,
Dominique
The text was updated successfully, but these errors were encountered: