OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

zmac-20221018p1

Z-80 macro cross assembler and ld80 CP/M linker

Back to search · Project homepage

Description

zmac is a Z-80 macro cross-assembler. It has all the features you'd expect. It assembles the specified input file (with a '.z' extension if there is no pre-existing extension and the file as given doesn't exist) and produces program output in many different formats. It also produces a nicely-formatted listing of the machine code and cycle counts alongside the source in a ".lst" file. Undocumented Z-80 instructions are supported as well as 8080 code. zmac strives to be a powerful assembler with expressions familiar to C programmers while providing good backward compatibility with original assemblers such as Edtasm, MRAS and Macro-80. This package also includes the ld80 .rel object file linker. ld80 is a linker for .rel object files as seen on CP/M and TRS-80 machines. It is a clone of Microsoft's original L80 linker.

Package information

Ports path
devel/zmac
Package architecture
amd64
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel
Available flavors
None listed
Only for architectures
aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Build

Installing and updating packages · Package details as JSON