XC-BASIC
millfork
XC-BASIC | millfork | |
---|---|---|
2 | 4 | |
74 | 245 | |
- | - | |
1.8 | 0.0 | |
about 2 years ago | 9 months ago | |
D | Scala | |
MIT License | 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.
XC-BASIC
-
demo
TEXTAT 7, 10, "available on xc-basic.net!", 5
-
What are the best resources for learning C64 BASIC in 2021?
Also, I've come across XC-BASIC which looks absolutely fantastic! Has anyone here used it? I very much like the idea of cross-compiled BASIC.
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.
What are some alternatives?
ldc - The LLVM-based D Compiler.
prog8 - high level programming language and compiler targeting 6502 machines such as the C-64 and CommanderX16
AmiBlitz3 - Complete package of AmiBlitz3 including all sources.
cowgol - A self-hosted Ada-inspired programming language for very small systems.
dmd - dmd D Programming Language compiler
RunCPM - RunCPM is a multi-platform, portable, Z80 CP/M 2.2 emulator.
atari64 - Commodore 64 OS running on Atari 8-bit hardware
vox - Vox language compiler. AOT / JIT / Linker. Zero dependencies
cpmhttpd - A basic web server for CP/M
j2z80 - Maven plugin to translate JVM bytecodes into Z80 commands
cpmish - An open source sort-of CP/M 2.2 distribution.