Created
December 19, 2011 16:46
-
-
Save andrewpurcell/1497922 to your computer and use it in GitHub Desktop.
calls mips module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require_relative 'mips' | |
def debug | |
return false unless ARGV[1].eql? "debug" | |
true | |
end | |
mips = Assembler.new(ARGV[0]) | |
mips.first_pass() | |
mips.print_first_pass() if debug | |
mips.second_pass() | |
mips.print_symbol_table() if debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment