rubyx/lib/risc/assembler.rb
Torsten Ruger 2d83473d74 add assembler
getting the layers better
2018-07-01 11:53:18 +03:00

12 lines
281 B
Ruby

module Risc
class Assembler
attr_reader :method , :instructions
def initialize( method , instructions)
@method = method
@instructions = instructions
total = instructions.total_byte_length / 4 + 1
method.binary.extend_to( total )
end
end
end