Skip to content
/ LC3_asm Public

Implementation of assembler for LC3 processor

Notifications You must be signed in to change notification settings

d0rj/LC3_asm

Repository files navigation

LC3_asm

CodeFactor Codacy Badge DeepSource

Pytest PyPI Upload

Overview

⚠ WIP - it has some 🪲🪲 ⚠

Simple asssembler for LC3 virtual machine. You can see my own realization of VM there or try good online simulator.

How to use

Copy

git clone https://github.com/d0rj/LC3_asm.git
cd LC3_asm

Install dependencies

python -m pip install --upgrade pip
pip install . --use-feature=in-tree-build

Run tests

pip install pytest
python -m pytest

Start assembler

python main.py -p "./examples/hello_world.asm" -o "./output/my_assambled_programm.bin"

-p / --path - path to assembly programm source file.

-o / --out - path for output binary file.

Currently not supported

  • .BLKW pseudo-operation
  • BR* label handle (bug)
  • Advanced label declaration with address etc.

Resources