rubyx/lib/risc/assembler.rb
Torsten Ruger bb1d1495db fix constant propagation through the layers
so they can end up in the binary
2018-07-03 10:12:22 +03:00

13 lines
282 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