Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
powered by ply
Python Assembly
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
asm_parser
bidirectional
mcode_parser
shared
sim
.gitignore
README.md
main.py
sample.asm

README.md

Bidirectional Transformer between Assembly Language and Machine Code

Dependency

  • Ply 3.4

Note

This transformer now can only understand the instruction spec defined in here.

However, the final goal is to support a subset of the MIPS ASM.

Simulator

In recent commits, a simulator is added (though only a subset of the instruction set is implemented), which is able to run the sample.asm program correctly.

sample.asm is a trivial program that calculates the product of two number, which are stored in R0 and R1.

ASM Parser

The asm parser consumes proper ASM programs and generates ASTs according to the programs provided. The parser uses Ply to parse ASM programs.

Machine Code Parser

The machine code parser creates ASTs of machine codes by using some sort of state machine currently, may change to Ply parsing in the future.

TODO

Support MIPS assembly language.

License

lgpl

contact: chsc4698@gmail.com

Something went wrong with that request. Please try again.