fix all test

and thus all green, two weeks of side branch positioning  done
(luckily not on arm, but interpreter)
This commit is contained in:
Torsten Ruger
2018-05-25 20:40:39 +03:00
parent c0cd1e0740
commit 1c09d4202f
25 changed files with 348 additions and 326 deletions

View File

@ -31,7 +31,7 @@ module Risc
# how many instruction up until the main starts, ie
# ticks(main_at) will be the label for main
def main_at
25
26
end
def get_return
@ -74,6 +74,10 @@ module Risc
end
# do the setup, compile and run the input (a main) to the end
def run_main_return(input)
run_main("return #{input}")
end
def run_main(input)
@string_input = as_main(input)
do_setup