clean up booting

many machine boot became obsolete
or just neede parfait to boot
actual linker functionality pending
This commit is contained in:
Torsten Ruger
2018-07-01 14:12:42 +03:00
parent e75aef933d
commit c947c27a14
32 changed files with 71 additions and 62 deletions

View File

@ -4,7 +4,7 @@ module Mom
class TestSlotDefinitionConstant < MiniTest::Test
def setup
Risc.machine.boot
Parfait.boot!
@compiler = CompilerMock.new
@definition = SlotDefinition.new(StringConstant.new("hi") , [])
@instruction = @definition.to_register(@compiler , InstructionMock.new)

View File

@ -3,7 +3,7 @@ require_relative "helper"
module Mom
class TestSlotDefinitionKnown1 < MiniTest::Test
def setup
Risc.machine.boot
Parfait.boot!
@compiler = CompilerMock.new
@definition = SlotDefinition.new(:message , :caller)
@instruction = @definition.to_register(@compiler , InstructionMock.new)

View File

@ -3,7 +3,7 @@ require_relative "helper"
module Mom
class TestSlotDefinitionKnown2 < MiniTest::Test
def setup
Risc.machine.boot
Parfait.boot!
@compiler = CompilerMock.new
@definition = SlotDefinition.new(:message , [:caller , :type])
@instruction = @definition.to_register(@compiler , InstructionMock.new)

View File

@ -4,7 +4,7 @@ module Mom
class TestSlotLoad1 < MiniTest::Test
def setup
Risc.machine.boot
Parfait.boot!
@load = SlotLoad.new( [:message, :caller] , [:message,:type] )
@compiler = CompilerMock.new
@instruction = @load.to_risc(@compiler)

View File

@ -5,7 +5,7 @@ module Mom
def setup
Parfait.boot!
Risc.machine.boot
Risc.boot!
@load = SlotLoad.new( [:message, :caller] , [:message, :caller , :type] )
@compiler = CompilerMock.new
@instruction = @load.to_risc(@compiler)