z80asm command not found

In this troubleshooting guide we learn how to fix z80asm command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

z80asm: command not found

or when using sudo you get the following error message

sudo: z80asm: command not found

Solutions to z80asm: command not found

How To Fix z80asm: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu z80asm is provided by z80asm package.

z80asm is:

The Z80 microprocessor is used in old home computers, such as the ZX spectrum and MSX, and in several newer devices, such as the TI-83 graphical calculator and (a stripped down version) in the (original) GameBoy.

This assembler is meant for developers who write code (in assembly) for such devices.

Features include:

  • macros
  • including other sources
  • complex expressions (similar to bash)
  • labels of unlimited length
  • conditional compilation depending on expressions

To fix this problem, we can install more using the command below.

sudo apt-get -y install z80asm

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install z80asm.

sudo apt -y install z80asm

Or if you have aptitude installed you can use the following command.

sudo aptitude install z80asm

Summary

In this tutorial we learn how to fix z80asm command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.