Skip to content

symoon94/MIPS-dollar-sign-autogen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIPS-dollar-sign-autogen

Automatic dollar signs assignment for MIPS. Please just make sure your code contains ".globl" and your input and output files have a different name or path. Also, registers should have an interval with at least one space or tab.

Usage

To autogenerate dollar signs in your mips file:

$ python mips.py  INPUTFILE \
                  -o FILE --output=FILE 

To see the argument options, run:

$ python mips.py --help

which will print:

usage: mips.py [-h] [-o OUTPUT] input

positional arguments:
    input                 path of the input file

optional arguments:
    -h, --help            show this help message and exit
    -o OUTPUT, --output OUTPUT
                          path of the output file

Result

Input file: Result1

Output file: Result2

To-do

  • Add an option to overwrite the input file

Author

Sooyoung Moon / @symoon94

About

Automatic dollar signs assignment for MIPS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages