blob: 528a50f1c4705953a0e6b6c7d4b44dd329a35b5a (
plain)
1
2
3
4
5
6
7
8
9
|
require_relative "../ruby/micronucleus.rb"
# just converts a hex file to a binary file
program = HexProgram.new open ARGV.first
File.open ARGV.first.split('/').last.sub(/\.hex$/, '') + '.raw', 'w' do |file|
file.write program.binary
file.close
end
|