fix platform derivation and some tests
This commit is contained in:
@ -6,7 +6,7 @@ module Risc
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Risc.boot!
|
||||
@machine = Linker.new
|
||||
@machine = Linker.new(:arm)
|
||||
end
|
||||
def test_objects
|
||||
objects = @machine.object_positions
|
||||
@ -20,11 +20,12 @@ module Risc
|
||||
assert @machine.add_constant( Parfait::Integer.new(5) )
|
||||
end
|
||||
end
|
||||
class TestMachinePos #< MiniTest::Test
|
||||
class TestMachinePos < MiniTest::Test
|
||||
def setup
|
||||
Parfait.boot!
|
||||
@machine = Risc.machine.boot
|
||||
@machine.translate(:arm)
|
||||
Risc.boot!
|
||||
@linker = Linker.new(:arm)
|
||||
@linker.translate
|
||||
@machine.position_all
|
||||
end
|
||||
def test_positions_set
|
||||
|
@ -9,7 +9,7 @@ module Risc
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Risc.boot!
|
||||
RubyX::RubyXCompiler.ruby_to_binary( @string_input , :interpreter)
|
||||
RubyX::RubyXCompiler.new(@string_input).ruby_to_binary( :interpreter)
|
||||
@interpreter = Interpreter.new
|
||||
@interpreter.start_machine
|
||||
end
|
||||
|
Reference in New Issue
Block a user