/rv32i-assembler

An assembler for a small subset of rv32i instructions in Python.

Primary LanguagePythonApache License 2.0Apache-2.0

rv32i-assembler

Work in progress

An assembler for a small subset of rv32i instructions in Python. Uses Python Lex-Yacc for grammar definition and parsing.

Originally implemented as an assignment in the Computer Organization and Architecture course at NIT Srinagar.

  • Number of instructions implemented: 38. (work in progress)
pip install -r requirements.txt
python3 assembler.py <input> -o <output>

Pending

  • CLI -> partially done.
  • Error reporting
  • Load/Store instructions -> implemented.
  • JALR
  • SLT/SLTU/SLTI/SLTIU -> implemented.
  • Comments

Resources