millfork
cpmhttpd
millfork | cpmhttpd | |
---|---|---|
4 | 2 | |
245 | 12 | |
- | - | |
0.0 | 0.0 | |
9 months ago | over 4 years ago | |
Scala | C | |
GNU General Public License v3.0 only | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
millfork
-
Do Not Taunt Happy Fun Branch Predictor
Well from the pov of machine or assembly code, C is without a doubt a high level language.
But at the same time it's the lowest-level high-level language.
(there are a couple of interesting 'mid-level' languages for 8-bit processors though, like Millfork: https://github.com/KarolS/millfork)
- Game Development Options on the Commodore 64
-
Open Source library to compile some programming language to native code?
Take a look at millfork, it's similar to what you're trying to do
-
Ask HN: Are impressive new programs being written for CP/M?
There are no doubt some systems still running under emulation doing the same thing as they were 40 years ago. But the truth is CP/M is dead. Long live CP/M!
It's just hobbyists now. One hacker ported his game to a Kaypro under CP/M a couple years ago: http://www.chrisfenton.com/dd9-kaypro-edition/
Much of the focus is on porting CP/M to whatever new or old Z80 system someone has built or found. I can't think of anything particularly dazzling besides the above, in terms of recent new programs, but here are some pointers if you wanted to write something yourself!
RunCPM is a CP/M Z80 virtual machine under modern OSes for development etc. https://github.com/MockbaTheBorg/RunCPM
CP/Mish is an attempt to bring all the free software CP/M tools together. It is to CP/M as Linux is to UNIX, or FreeDOS is to MS-DOS. A mostly complete, improved, libre reimplementation: https://github.com/davidgiven/cpmish
Also from David Given (and not CP/M specific) is Cowgol. Alpha quality. But it's a self-hosted Pascal/Ada-like language with compiler. Runs on 8-bit systems, at least theoretically. It is written, of course, entirely in Cowgol: https://github.com/davidgiven/cowgol
Millfork is a language which targets CP/M systems, among others. It's a whole-program optimizing compiler for a language somewhat lower level than C, with properties that make it very nice to compile for 8-bit systems like no recursion, and no automatic promotion to 16-bit integers in type handling: https://github.com/KarolS/millfork
SDCC supports the platform with C surprisingly well. I wouldn't call it rock-solid but compared to the above toys it is an industrial quality compiler for the Z80. In fact, C seems to be the most common actual language for hobbyist and the little remaining serious Z80 development, probably ahead of assembly.
If it just reads and writes the terminal and can fit in 64 KB, then a port is probably straightforward.
cpmhttpd
- Hosting a Public Website on MS-DOS
-
Ask HN: Are impressive new programs being written for CP/M?
I wrote a web server for CP/M a couple of years ago: https://github.com/jes/cpmhttpd and https://incoherency.co.uk/blog/stories/rc2014-web-server.htm...
Since CP/M has no networking support, this also includes implementing TCP/IP inside the web server program, although I only did an extremely superficial job of this: just enough to make it look like it works under normal circumstances. (For example, it has no mechanism to retransmit dropped packets, at least partly because because my machine has no RTC so it has no idea how much time is passing).
It connects to the Internet via SLIP over a serial port to a nearby Linux machine.
The machine that was running it briefly hosted a little web page about my RC2014 and the web server program, but it's too much hassle to keep it running, so it's not up at the moment.
What are some alternatives?
prog8 - high level programming language and compiler targeting 6502 machines such as the C-64 and CommanderX16
RunCPM - RunCPM is a multi-platform, portable, Z80 CP/M 2.2 emulator.
cowgol - A self-hosted Ada-inspired programming language for very small systems.
cpmish - An open source sort-of CP/M 2.2 distribution.
atari64 - Commodore 64 OS running on Atari 8-bit hardware
j2z80 - Maven plugin to translate JVM bytecodes into Z80 commands
CROSS-LIB - CROSS LIB - A universal 8-bit library and some games built with it
sunset - Retro sunset scene on NES
XC-BASIC - A compiling BASIC dialect for the Commodore-64