Z80
(or libZ80) is a small library that implements a fast and accurate emulator of the Zilog® Z80™ CPU. It is written in ANSI C for maximum portability and is distributed under the GNU LGPL v3 (or later).
First, add the zxe repository and update the package index:
curl -L https://zxe.io/scripts/add-zxe-apt-repo.sh | sudo sh sudo apt update
Next, install the library package:
sudo apt install libz80
To build software that requires the Z80 library, install the development package too:
sudo apt install libz80-dev
First, add and sync the zxe overlay:
eselect repository add zxe git https://github.com/redcode/zxe-gentoo-overlay.git emaint sync --repo zxe
Then install the library:
emerge emulation-libs/z80
brew trust redcode/zxe brew install redcode/zxe/z80
The Z80 library is written in C, but its also available to various programming languages through bindings: