remove booted flag

just boot if needed
This commit is contained in:
Torsten Ruger
2018-06-29 11:36:14 +03:00
parent f1b09ac58d
commit 606c7bf906
5 changed files with 26 additions and 33 deletions

View File

@ -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

View File

@ -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)