reinit risc_init

fixes over 100 tests :-)
This commit is contained in:
Torsten Ruger 2018-05-01 22:36:46 +03:00
parent 6be28e7f55
commit d49d2665c5
2 changed files with 2 additions and 2 deletions

View File

@ -18,6 +18,7 @@ module Risc
def initialize
@booted = false
@risc_init = nil
@constants = []
end
attr_reader :constants , :cpu_init , :binary_init
@ -135,7 +136,6 @@ module Risc
return do_create_binary
rescue LinkException
not_ok += 1
puts "relink no #{not_ok}"
position_code
end
end

View File

@ -39,7 +39,7 @@ module Risc
assert_equal Parfait::BinaryCode , @machine.binary_init.class
end
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