node/lib/metasm/metasm/exe_format/coff_decode.rb
def cpu_from_headers
		case @header.machine
		when 'I386'; Ia32.new
		when 'AMD64'; X86_64.new
		when 'R4000'; MIPS.new(:little)
		else raise "unknown cpu #{@header.machine}"
		end
	end
# returns a metasm CPU object corresponding to +header.machine+
returns a metasm CPU object corresponding to +header.machine+
returns a metasm CPU object corresponding to + header . machine +
def cpu_from_headers
		case @header.machine
		when 'I386'; Ia32.new
		when 'AMD64'; X86_64.new
		when 'R4000'; MIPS.new(:little)
		else raise "unknown cpu #{@header.machine}"
		end
	end
def cpu_from_headers case @header . machine when 'I386' ; Ia32 . new when 'AMD64' ; X86_64 . new when 'R4000' ; MIPS . new ( :little ) else raise "unknown cpu #{@header.machine}" end end
returns a metasm CPU object corresponding to +header.machine+
returns a metasm CPU object corresponding to + header . machine +