start on new binary creation process
now writing into BinaryCode instead of stream also in the risc layer, not arm, for reusability
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
require_relative "collector"
|
||||
require_relative "binary_writer"
|
||||
|
||||
module Risc
|
||||
# The Risc Machine is an abstraction of the register level. This is seperate from the
|
||||
@ -93,6 +94,15 @@ module Risc
|
||||
at
|
||||
end
|
||||
|
||||
def create_binary
|
||||
objects.each do |id , method|
|
||||
next unless method.is_a? Parfait::TypedMethod
|
||||
puts "CODE1 #{method.name}:#{}"
|
||||
writer = BinaryWriter.new(method.binary)
|
||||
writer.assemble(method.cpu_instructions)
|
||||
end
|
||||
end
|
||||
|
||||
def boot
|
||||
initialize
|
||||
@objects = nil
|
||||
|
Reference in New Issue
Block a user