remove booted flag
just boot if needed
This commit is contained in:
@ -17,14 +17,13 @@ module Risc
|
||||
log_level :info
|
||||
|
||||
def initialize
|
||||
@booted = false
|
||||
@risc_init = nil
|
||||
@constants = []
|
||||
@next_address = nil
|
||||
end
|
||||
|
||||
|
||||
attr_reader :constants , :cpu_init
|
||||
attr_reader :booted , :translated
|
||||
attr_reader :translated
|
||||
attr_reader :platform
|
||||
|
||||
# Translate code to whatever cpu is specified.
|
||||
@ -169,7 +168,6 @@ module Risc
|
||||
@objects = nil
|
||||
@translated = false
|
||||
boot_parfait!
|
||||
@booted = true
|
||||
self
|
||||
end
|
||||
|
||||
|
@ -9,10 +9,7 @@ module Vool
|
||||
statements.to_mom(nil)
|
||||
statements
|
||||
end
|
||||
def self.ruby_to_mom(source)
|
||||
statements = self.ruby_to_vool(source)
|
||||
statements.to_mom(nil)
|
||||
end
|
||||
|
||||
def self.ruby_to_binary(source , platform = :arm)
|
||||
machine = Risc.machine.boot
|
||||
self.ruby_to_vool(source)
|
||||
|
Reference in New Issue
Block a user