dasm command not found

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

Introduction

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

dasm: command not found

or when using sudo you get the following error message

sudo: dasm: command not found

Solutions to dasm: command not found

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

In Ubuntu dasm is provided by dasm package.

dasm is:

DASM is a versatile macro assembler with support for several 8-bit microprocessors including MOS 6502 & 6507; Motorola 6803, 68705, and 68HC11; Hitachi HD6303 (extended Motorola 6801) and Fairchild F8.

DASM boasts a number of features including:

  • fast assembly
  • supports several common 8 bit processor models
  • takes as many passes as needed
  • automatic checksum generation, special symbol ’…’
  • several binary output formats available
  • allows reverse indexed origins
  • multiple segments, BSS segments (no generation), relocatable origin
  • expressions, as in C
  • 32-bit integer expressions
  • no real limitation on label size
  • complex pseudo-ops, repeat loops, macros

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

sudo apt-get -y install dasm

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

You can also use apt command to install dasm.

sudo apt -y install dasm

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

sudo aptitude install dasm

Summary

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