8080toz80
If you are need to import 8080 code and run it under z88dk, you first need to convert it to Z80 mnemonics. The conversion is possible with an AWK based tool, "toz80.awk", located in z88dk/support/8080.
The original tool is by Douglas Beattie Jr.
You need the AWK language interpreter to run this.
If the tool doesn't seem to run correctly, there might be a problem with the end-of-line marker: locate the "Record separator" comment and choose the optional behaviour.
Since July 2019, z80asm supports the Intel 8080/8085 opcodes if called with -m8080 or -m8085. The assembly code can also use the clearer Zilog syntax and assemble for the Intel processors.
There's two caveats:
-
The Call if Positive instruction in Intel syntax is
cp
, which is Compare in Zilog syntax. The assembler interpretscp
as compare, andc_p
as call if positive. -
The Jump if Positive instruction in Intel syntax is
jp
, which is Jump in Zilog syntax. The assembler interpretsjp
as jump, andj_p
as jump if positive.
- Overview
- Platform List
- Unsupported Platforms
- i8080/5 Support
- Homebrew hardware quickstart
- Retargetting
- Building the libraries
- Clang support
- Pragmas
- Adding to Classic
- Introduction
- Library Configuration
- CRT
- Header Files
- Assembly Language
- Library in Depth
- Embedded Platform
- Adding to NewLib
- Benchmarks
- Datatypes
- Debugging
- Decompression
- More than 64k
- Deficiencies
- Compiling Larger Applications
- Importing routines written in 8080 assembly mnemonics
- Using CP/M libraries in REL format with z88dk
- Writing optimal code
- Speeding up Compilation
- CMake usage