fix an issue where instruction was in wrong code

embarrassingly used instance variable where it should have been local
This commit is contained in:
Torsten Ruger
2018-05-25 19:16:13 +03:00
parent 6f0fad0957
commit c0cd1e0740
5 changed files with 32 additions and 20 deletions

View File

@ -8,17 +8,12 @@ module Risc
def setup
Risc.machine.boot
do_clean_compile
Vool::VoolCompiler.ruby_to_binary( @string_input , :interpreter)
@interpreter = Interpreter.new
@interpreter.start_machine
end
alias :do_setup :setup
# must be after boot, but before main compile, to define method
def do_clean_compile
end
# check the given array of instructions is what the interpreter actually does
# possible second argument ignores the given amount, usually up until main
def check_chain( should , start_at = 0 )