Mini-Simulator for MIPS Assemble Language
Open your Terminal and run these commands.
Write the LEX code in this file
$ vi mips_sim.lRun mips.l through LEX to generate lex.yy.c
$ lex mips.lCompile lex.yy.c to generate a.out
$ cc lex.yy.cInput the input.asm file to a.out to generate the tokens
$ a.out < input.asm