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:
@ -28,8 +28,9 @@ module Risc
|
||||
assert @assembler.assemble
|
||||
end
|
||||
def test_write_space
|
||||
@assembler = Assembler.new(@machine , Collector.collect_space)
|
||||
assert @machine.translate_arm
|
||||
assert @machine.position_all
|
||||
@assembler = Assembler.new(@machine , Collector.collect_space)
|
||||
#assert @assembler.write_as_string
|
||||
end
|
||||
end
|
||||
|
@ -6,13 +6,11 @@ module Risc
|
||||
def setup
|
||||
@machine = Risc.machine.boot
|
||||
end
|
||||
|
||||
def test_objects
|
||||
objects = @machine.objects
|
||||
assert_equal Hash , objects.class
|
||||
assert 350 < objects.length
|
||||
end
|
||||
|
||||
def test_position_length
|
||||
@machine.position_all
|
||||
objects = @machine.objects
|
||||
@ -25,5 +23,9 @@ module Risc
|
||||
assert Positioned.position(obj)
|
||||
end
|
||||
end
|
||||
def test_binary
|
||||
@machine.position_all
|
||||
@machine.create_binary
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user