/asmotor

Powerful macro (cross) assembler package for several CPUs

Primary LanguageC

ASMotor

ASMotor is a portable and generic assembler engine and development system written in ANSI C11 and licensed under the GNU Public License v3. The package consists of the assembler, the librarian and the linker. It can be used as either a cross or native development system.

The assembler syntax is based on the Motorola style macro language.

Currently supported CPUs are the 680x0 family, 6502, MIPS32, Z80, Game Boy, DCPU-16 and CHIP-8/SCHIP.

ASMotor is the spiritual successor to RGBDS, which was a fairly popular development package for the Game Boy. ASMotor is written by the original RGBDS author.

Installing

Building from source

Linux and macOS

A script (install.sh) is included that will install the compiled binaries into the $HOME/bin directory. This path should be added to your $PATH for easier use. This script will also accept the destination root (for instance /usr/local).

For even easier installation, provided you have the necessary prerequisites, git and cmake, installed, the latest version of ASMotor can be installed using

    curl https://raw.githubusercontent.com/asmotor/asmotor/master/bootstrap.sh | sh

If you want to install it globally, you can supply the installation prefix as a parameter:

    curl https://raw.githubusercontent.com/asmotor/asmotor/master/bootstrap.sh | sh -s /usr/local

To install git and cmake, it is suggested you use your distribution's package manager. For macOS, use brew or MacPorts.

Further reading

Dive into the documentation to learn more about:

Index and reference