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

Intel 8085 support

This commit is contained in:
Karol Stasiak
2019-05-31 17:27:38 +02:00
parent 1cb3b672b1
commit b3bb9bb063
17 changed files with 93 additions and 22 deletions
+2 -2
View File
@@ -44,11 +44,11 @@ If given, then the compiler will NOT try to detect the default include directory
* `-finput_intel_syntax`, `-finput_zilog_syntax`
Choose syntax for assembly sources on 8080-like targets.
Can be overridden by the source file itself using `#pragma`.
`.ini` equivalent: `input_intel_syntax`. Default: Intel (true) on Intel 8080, Zilog (false) otherwise.
`.ini` equivalent: `input_intel_syntax`. Default: Intel (true) on Intel 8080/8085, Zilog (false) otherwise.
* `-foutput_intel_syntax`, `-foutput_zilog_syntax`
Choose syntax for assembly output on 8080-like targets.
`.ini` equivalent: `output_intel_syntax`. Default: Intel (true) on Intel 8080, Zilog (false) otherwise.
`.ini` equivalent: `output_intel_syntax`. Default: Intel (true) on Intel 8080/8085, Zilog (false) otherwise.
* `--syntax=intel`, `--syntax=zilog` sets both previous options at once
+6 -4
View File
@@ -27,11 +27,13 @@ if a line ends with a backslash character, the value continues to the next line.
* `65816` (WDC 65816/65802; experimental; currently only programs that use only 16-bit addressing are supported)
* `z80` (Zilog Z80; experimental and slightly incomplete)
* `z80` (Zilog Z80)
* `i8080` (Intel 8080; experimental, buggy and very incomplete)
* `i8080` (Intel 8080)
* `gameboy` (Sharp LR35902; experimental, buggy and very incomplete)
* `i8085` (Intel 8085)
* `gameboy` (Sharp LR35902; experimental)
* `i8086` (Intel 8086; very experimental, very buggy and very, very incomplete
see the [8086 support disclaimer](../lang/x86disclaimer.md))
@@ -94,7 +96,7 @@ Default: the same as `encoding`.
* `software_stach` use software stack for stack variables, default is `false`
* `output_intel_syntax` use Intel syntax instead of Zilog syntax, default is `true` for Intel 8080 and `false` otherwise
* `output_intel_syntax` use Intel syntax instead of Zilog syntax, default is `true` for Intel 8080/8085 and `false` otherwise
#### `[define]` section
+1 -1
View File
@@ -44,7 +44,7 @@ You may be also interested in the following:
* `-fipo` enable interprocedural optimization
* `-s` additionally generate assembly output
(if targeting Intel 8080, use `--syntax=intel` or `--syntax=zilog` to choose the preferred assembly syntax)
(if targeting Intel 8080/8085, use `--syntax=intel` or `--syntax=zilog` to choose the preferred assembly syntax)
* `-fsource-in-asm` show original Millfork source in the assembly output
+1 -1
View File
@@ -26,7 +26,7 @@ Support for other devices using supported processors can be easily added, usuall
* 6502 and its descendants: 6510, 65C02, Ricoh 2A03, and to a lesser degree CSG 65CE02, Hudson Soft HuC6280 and WDC 65816. 6509 is not supported and will not be.
* Intel 8080, Zilog Z80, Sharp LR35902 (also known as GBZ80)
* Intel 8080, Intel 8085, Zilog Z80, Sharp LR35902 (also known as GBZ80)
* There is also partial experimental support for Intel 8086, via automatic 8080-to-8086 translation.
The generated code is very large and very slow.
+1 -1
View File
@@ -10,7 +10,7 @@ There are two ways to include raw assembly code in your Millfork programs:
## Assembly syntax
By default, Millfork uses Zilog syntax for Z80 and LR35902 assembly and Intel syntax for Intel 8080 assembly.
By default, Millfork uses Zilog syntax for Z80 and LR35902 assembly and Intel syntax for Intel 8080/8085 assembly.
This can be overridden per file by a pragma directive or by several other means.
Using both kinds of syntax in one file is not supported.