Class: ECUTools::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/cli.rb

Instance Method Summary collapse

Instance Method Details

#disassemble(input) ⇒ Object



20
21
22
23
24
25
# File 'lib/cli.rb', line 20

def disassemble(input)
  outfile = "#{File.basename(input, File.extname(input))}.asm"
  dasm = ECUTools::Disassembler.new(input, {:verbose => true})
  dasm.analyze
  dasm.write(outfile)
end