uPower Assembler

A limited Micropower ISA assembler, submitted as assignment in CoA.

Usage

./bin/u_asm <path to asm file> [--debug] [--step-run]

Features

  • Set up command line arguments
  • Read and pre process files
  • Initialize text and data segment
  • Initialize registers
  • Generate symbol table
  • Parse instructions
  • Encode instructions
  • Execute instructions

Installation

  1. Clone the repository.
git clone git@github.com:abhishekkumar2718/Micropower-ISA.git && cd Micropower-ISA
  1. Build the application.
make
  1. Use the simulator on your micropower asm files.
./bin/u_sim <path to asm file>
  1. [Optional] Run tests
make test

References

  1. A Simple C++ Project Structure
  2. MIPS Memory Layout