Skip to content

Instantly share code, notes, and snippets.

@skalnik
Created February 11, 2009 02:16
Show Gist options
  • Save skalnik/61772 to your computer and use it in GitHub Desktop.
Save skalnik/61772 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
if ARGV[0].nil?
puts "Need filename to run"
exit 0
end
basename = File.basename(ARGV[0], '.asm')
lc3as = "/Applications/Simpl.app/lc3as #{ARGV[0]}"
simpl = "/Applications/Simpl.app/Contents/MacOS/simpl #{basename}.obj"
puts `#{lc3as} && #{simpl}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment