fix constant propagation through the layers
so they can end up in the binary
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
module Risc
|
||||
class Assembler
|
||||
attr_reader :method , :instructions , :constants
|
||||
def initialize( method , instructions, constants)
|
||||
attr_reader :method , :instructions
|
||||
|
||||
def initialize( method , instructions)
|
||||
@method = method
|
||||
@instructions = instructions
|
||||
@constants = constants
|
||||
total = instructions.total_byte_length / 4 + 1
|
||||
method.binary.extend_to( total )
|
||||
end
|
||||
|
Reference in New Issue
Block a user