millfork
sunset
millfork | sunset | |
---|---|---|
4 | 2 | |
245 | 1 | |
- | - | |
0.0 | 0.0 | |
9 months ago | almost 3 years ago | |
Scala | Assembly | |
GNU General Public License v3.0 only | MIT License |
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.
sunset
What are some alternatives?
prog8 - high level programming language and compiler targeting 6502 machines such as the C-64 and CommanderX16
revs-beebasm - Fully documented and annotated source code for Revs on the BBC Micro
cowgol - A self-hosted Ada-inspired programming language for very small systems.
NES-dev - A simple NES game written in 6502 assembly
RunCPM - RunCPM is a multi-platform, portable, Z80 CP/M 2.2 emulator.
spectrum-desolate - 🕹️ Ported Desolate game from TI-83 Plus to ZX Spectrum
atari64 - Commodore 64 OS running on Atari 8-bit hardware
apple2_hgrbyte - Explore the Apple 2 HGR amd DHGR esoteric screen layout with bit twiddling and byte manipulation.
cpmhttpd - A basic web server for CP/M
nes-elite-beebasm - Fully documented and annotated source code for Elite on the Nintendo Entertainment System (NES)
j2z80 - Maven plugin to translate JVM bytecodes into Z80 commands
240p-test-mini - Size-optimized ports of Artemio's 240p Test Suite to 8-bit consoles