1
0
mirror of https://github.com/KarolS/millfork.git synced 2025-01-11 12:29:46 +00:00
millfork/README.md

70 lines
2.4 KiB
Markdown
Raw Normal View History

2018-01-21 01:24:56 +01:00
![](logo_transparent.png)
2017-12-06 22:00:04 +01:00
# Millfork
A middle-level programming language targeting 6502-based, 8080-based, Z80-based and 6809-based microcomputers.
2017-12-07 00:23:30 +01:00
2019-07-15 14:41:19 +02:00
For binary releases, see: [https://github.com/KarolS/millfork/releases](https://github.com/KarolS/millfork/releases)
2020-12-02 00:54:52 +01:00
(latest: 0.3.24).
2019-06-28 18:43:24 +02:00
For build instructions, see [Build instructions](./COMPILING.md).
2018-01-24 17:47:20 +01:00
2017-12-06 22:00:04 +01:00
## Features
2018-12-19 19:04:19 +01:00
* high performance, due to being designed and optimized for 8-bit microprocessors
2017-12-06 22:00:04 +01:00
* multiple targets:
* Commodore 64 (the primary target)
* Commodore 64 with SuperCPU (experimental, incomplete and very buggy)
2018-12-19 19:04:19 +01:00
* other Commodore computers: C16, Plus/4, C128, PET, VIC-20 (stock or with RAM extensions)
2017-12-06 22:00:04 +01:00
2019-09-20 01:44:18 +02:00
* other 6502-based machines: Famicom/NES, Atari Lynx, Atari 8-bit computers, BBC Micro, Apple II+/IIe/Enhanced IIe, Atari 2600 (experimental), Commander X16 (experimental)
2018-03-15 23:46:16 +01:00
2020-09-29 22:57:48 +02:00
* Z80-based machines: ZX Spectrum 48k, NEC PC-88, Amstrad CPC, MSX, TRS-80 Model 1 and 3, Robotron Z1013
2019-06-05 13:31:43 +02:00
2018-07-31 01:02:55 +02:00
* CP/M
2018-12-19 19:04:19 +01:00
2019-03-18 23:15:28 +01:00
* Game Boy (experimental)
2019-05-31 17:03:35 +02:00
* Tandy Color Computer (experimental)
2019-05-31 17:03:35 +02:00
* MS-DOS (very experimental, via 8080-to-8086 translation)
2017-12-06 22:00:04 +01:00
* multiple supported target processors:
* well supported: MOS 6502, Ricoh 2A03/2A07, WDC 65C02, Intel 8080, Intel 8085, Zilog Z80
* reasonably well supported: Sharp LR35902, CSG 65CE02, Motorola 6809
* partially supported: Hudson Soft HuC6280, WDC 65816, Intel 8086
2017-12-06 22:00:04 +01:00
* inline assembly
2018-03-17 18:21:50 +01:00
* simple macros
2017-12-06 22:00:04 +01:00
* pay only for what you use: not a single byte of memory is used unless for code or explicitly declared variables
* a simple memory model that avoids using the stack
2017-12-06 22:00:04 +01:00
2018-12-19 19:04:19 +01:00
* multi-pass whole-program optimizer (that will even optimize your hand-written assembly if you ask it to)
2017-12-06 22:00:04 +01:00
* support for multi-file programs (Commodore only) and banked cartridges
## 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.
2019-09-18 00:48:33 +02:00
The documentation is distributed under the [CC-0 license](https://creativecommons.org/publicdomain/zero/1.0/).
2018-01-21 21:55:44 +01:00
## More info
2019-07-15 13:52:05 +02:00
* [Documentation](docs/README.md) (external version: [https://millfork.readthedocs.io](https://millfork.readthedocs.io))
2018-01-21 21:55:44 +01:00
2018-04-03 00:21:26 +02:00
* [Example programs](examples/README.md)
2018-01-21 21:55:44 +01:00