Skip to content

aluchieneseiv/py-mipsasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-mipsasm

A mips assembler... in python?

What's implemented

All non-fp instructions from here (currently not all are tested base instructions have been tested, but no pseudoinstructions), labels, hex constants and the possibility to specify assembled code's place in memory.

The assembler creates two files:

  • rom.mem
  • ram.mem

Both files are in Verilog's format for $readmemh.

Keep in mind that the rom is made with 32-bit words in mind so 0x400000 bytes is actually 0x100000 in words. The ram is made with 8-bit words.

Requirements

  • python3 -m pip install lark-parser construct

Running it

I recommend having an alias for this so you can run it from anywhere

  • python3 mipsasm.py --help

About

A mips assembler... in python?

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published