From a100675c7caf0b83aa9387810663ae5ce0b1b358 Mon Sep 17 00:00:00 2001 From: Karol Stasiak Date: Sat, 29 Dec 2018 20:16:05 +0100 Subject: [PATCH] Documentation update --- CHANGELOG.md | 10 ++++++++++ docs/lang/preprocessor.md | 2 ++ 2 files changed, 12 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4ebb1d2..f1397a1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ ## Current version +* Added `MILLFORK_VERSION` preprocessor parameter. + +* 6502: Fixed optimizations using index registers. + +* Fixed optimizations removing pointless stores to local variables. + +* Fixed `#use` not accessing all preprocessor parameters. + +* Fixed `#pragma` not respecting `#if` + ## 0.3.2 * Almost complete support for the Zilog Z80, Intel 8080 and Sharp LR35902 microprocessors. diff --git a/docs/lang/preprocessor.md b/docs/lang/preprocessor.md index 5bd60d94..cb91b5df 100644 --- a/docs/lang/preprocessor.md +++ b/docs/lang/preprocessor.md @@ -32,6 +32,8 @@ You can also define feature values using the `-D` command line option. The following features are defined based on the chosen CPU and compilation options: +* `MILLFORK_VERSION` – defined since 0.3.4, contains the version of the compiler: for version x.y.z, the value is 10000x+100y+z + * `ARCH_6502` – 1 if compiling for 6502, 0 otherwise * `ARCH_I80` – 1 if compiling for Intel 8080-like processor, 0 otherwise