reinit risc_init
fixes over 100 tests :-)
This commit is contained in:
parent
6be28e7f55
commit
d49d2665c5
@ -18,6 +18,7 @@ module Risc
|
|||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
@booted = false
|
@booted = false
|
||||||
|
@risc_init = nil
|
||||||
@constants = []
|
@constants = []
|
||||||
end
|
end
|
||||||
attr_reader :constants , :cpu_init , :binary_init
|
attr_reader :constants , :cpu_init , :binary_init
|
||||||
@ -135,7 +136,6 @@ module Risc
|
|||||||
return do_create_binary
|
return do_create_binary
|
||||||
rescue LinkException
|
rescue LinkException
|
||||||
not_ok += 1
|
not_ok += 1
|
||||||
puts "relink no #{not_ok}"
|
|
||||||
position_code
|
position_code
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -39,7 +39,7 @@ module Risc
|
|||||||
assert_equal Parfait::BinaryCode , @machine.binary_init.class
|
assert_equal Parfait::BinaryCode , @machine.binary_init.class
|
||||||
end
|
end
|
||||||
def test_has_jump
|
def test_has_jump
|
||||||
assert_equal "1" , @machine.binary_init.get_word(1).to_s(16)
|
assert_equal "ea0011f4" , @machine.binary_init.get_word(1).to_s(16)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user