1
0
mirror of https://github.com/KarolS/millfork.git synced 2026-04-20 18:16:35 +00:00

Allow setting the size of the zeropage register from the command line.

This commit is contained in:
Karol Stasiak
2018-08-06 19:15:41 +02:00
parent 516b44ad05
commit bf47473162
4 changed files with 26 additions and 12 deletions
+4 -3
View File
@@ -81,10 +81,11 @@ Default: native if targeting 65816, no otherwise.
`.ini` equivalent: `prevent_jmp_indirect_bug`.
Default: no if targeting a 65C02-compatible architecture or a non-6502 architecture, yes otherwise.
* `-fzp-register`, `-fno-zp-register` Whether should reserve 4 bytes of zero page as a pseudoregister.
Increases language features.
* `-fzp-register=[0-15]`, `-fno-zp-register` Sets the size of the zeropage pseudoregister.
Increases language features on 6502-based targets.
Recommended values: 2 or 4. Values higher than 4 are pointless.
`.ini` equivalent: `zeropage_register`.
Default: yes if targeting a 6502-based architecture, no otherwise.
Default: 4 if targeting a 6502-based architecture, 0 otherwise.
* `-fdecimal-mode`, `-fno-decimal-mode`
Whether hardware decimal mode should be used (6502 only).