2018-01-21 00:24:56 +00:00
![](logo_transparent.png)
2017-12-06 21:00:04 +00:00
# Millfork
2018-12-19 18:04:19 +00:00
A middle-level programming language targeting 6502-based, 8080-based and Z80-based microcomputers.
2017-12-06 23:23:30 +00:00
2018-07-24 22:04:00 +00:00
For binary releases, see: https://github.com/KarolS/millfork/releases
2018-12-19 18:04:19 +00:00
(latest: 0.3.0, only for 6502)
2018-01-24 16:47:20 +00:00
2017-12-06 21:00:04 +00:00
## Features
2018-12-19 18:04:19 +00:00
* high performance, due to being designed and optimized for 8-bit microprocessors
2017-12-06 21:00:04 +00:00
* multiple targets:
* Commodore 64 (the primary target)
2018-03-03 00:21:57 +00:00
* Commodore 64 with SuperCPU (experimental, incomplete and very buggy)
2018-12-19 18:04:19 +00:00
* other Commodore computers: C16, Plus/4, C128, PET, VIC-20 (stock or with RAM extensions)
2017-12-06 21:00:04 +00:00
2018-03-17 17:21:50 +00:00
* Famicom/NES (the second most important target)
2018-03-15 22:46:16 +00:00
2017-12-06 21:00:04 +00:00
* Atari 8-bit computers
2018-01-23 12:37:03 +00:00
2018-04-02 22:21:26 +00:00
* BBC Micro
2018-01-23 12:37:03 +00:00
* Apple II+/IIe/Enhanced IIe
2018-07-24 22:04:00 +00:00
* ZX Spectrum 48k
* NEC PC-88
2018-07-30 23:02:55 +00:00
2018-12-19 21:21:51 +00:00
* Amstrad CPC
2018-12-19 18:04:19 +00:00
2018-07-30 23:02:55 +00:00
* CP/M
2018-12-19 18:04:19 +00:00
* Atari 2600 (experimental)
2017-12-06 21:00:04 +00:00
* inline assembly
2018-03-17 17:21:50 +00:00
* simple macros
2017-12-06 21:00:04 +00:00
* pay only for what you use: not a single byte of memory is used unless for code or explicitly declared variables
* simple memory model that avoids using the stack
2018-12-19 18:04:19 +00:00
* multi-pass whole-program optimizer (that will even optimize your hand-written assembly if you ask it to)
2017-12-06 21:00:04 +00:00
2018-06-22 16:16:10 +00:00
## Licensing
The compiler is distributed under GPLv3 (see [LICENSE ](LICENSE )).
The standard include files (located in the `include` directory) are distributed under a more permissive Zlib license (see [include/LICENSE ](include/LICENSE )).
Therefore, no attribution is needed if you are developing and distributing Millfork programs.
2018-01-21 20:55:44 +00:00
## More info
2018-03-28 17:31:10 +00:00
* [Documentation ](docs/index.md )
2018-01-21 20:55:44 +00:00
2018-04-02 22:21:26 +00:00
* [Example programs ](examples/README.md )
2018-01-21 20:55:44 +00:00
2017-12-06 21:00:04 +00:00
## Planned features
2018-07-24 22:04:00 +00:00
* stdlib improvements
2018-07-01 22:31:47 +00:00
* more 6502 targets: Oric computers, PC-Engine/Turbografx-16, Atari Lynx
2018-07-24 22:04:00 +00:00
2018-12-19 18:04:19 +00:00
* more Z80 targets: MSX, TI-83, Sega Master System
2018-03-03 00:21:57 +00:00
2018-07-27 17:15:57 +00:00
* better support for 65816, Intel 8080, Sharp LR35902 and eZ80
2018-07-24 22:04:00 +00:00
2018-12-19 18:04:19 +00:00
* support for Gameboy, SuperFamicom/SNES and Apple IIgs