Skip to content

Instantly share code, notes, and snippets.

@andrewpurcell
Created December 19, 2011 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewpurcell/1497922 to your computer and use it in GitHub Desktop.
Save andrewpurcell/1497922 to your computer and use it in GitHub Desktop.
calls mips module
#!/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