Skip to main content

An assembler/dissassembler for the Gheith ISA

Project description

gasm

The Gheith ISA assembler.

For students in Dr. Gheith's CS 429H course completing pipelining.

Quick Start

pip install gasm 👍

Usage

Assembling:

gasm <path to assembly file> <OPTIONAL: path to desired output file>

There are relatively few restrictions on the assembly file. The file extension, for example, is entirely unimportant. Designations like r for registers and # for literals are also not required (and do not impact the assembly process).

However, you may not have labels (this should not matter). You may only have instructions. Take the following as an example:

movl r0, #104
movl r0, #101
movl r0, #108
movl r0, #108
movl r0, #111
movl r0, #10

You may choose to end your assembly with an end directive. Doing so, the assembler will provide the hex instruction ffff in its place.

Disassembling:

dasm <path to .hex file> <OPTIONAL: path to desired output file>

The file you want to disassemble should be valid .hex. It may, however, end with an ffff, though the instruction is not officially recognized.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gasm-1.0.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

gasm-1.0.2-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page