for lab5's mips encoder translates binary files into human-interpretable language, and compile commands into binary. written in python 3.5.1
- run
mips-encode.py
- call
encodeFile(filename)
(orencodeFile(filename, outFile)
example
encodeFile("test.txt") # This prints output to stdout
encodeFile("test.txt", open("out.txt","w")) # This prints output to file
- run
mips-decode.py
- call
decodeFile(filename)
ordecodeFile(filename, outFile)
example
decodeFile("instmem.txt") # This prints output to stdout
decodeFile("instmem.txt", open("out.txt","w")) # This prints output to file