Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 999 Bytes

README.md

File metadata and controls

50 lines (35 loc) · 999 Bytes

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