From d49d2665c5c7881f6bef2867b4f9b7ecfec55503 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Tue, 1 May 2018 22:36:46 +0300 Subject: [PATCH] reinit risc_init fixes over 100 tests :-) --- lib/risc/machine.rb | 2 +- test/risc/test_machine.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/risc/machine.rb b/lib/risc/machine.rb index 6237e1a8..fd63cdb0 100644 --- a/lib/risc/machine.rb +++ b/lib/risc/machine.rb @@ -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 diff --git a/test/risc/test_machine.rb b/test/risc/test_machine.rb index 98084ce4..9184438f 100644 --- a/test/risc/test_machine.rb +++ b/test/risc/test_machine.rb @@ -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