8080toz80 - z88dk/z88dk GitHub Wiki

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.

Troubleshooting

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.

z80asm support of 8080/8085

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:

  1. The Call if Positive instruction in Intel syntax is cp, which is Compare in Zilog syntax. The assembler interprets cp as compare, and c_p as call if positive.

  2. The Jump if Positive instruction in Intel syntax is jp, which is Jump in Zilog syntax. The assembler interprets jp as jump, and j_p as jump if positive.