rename register to risc

seems to fit the layer much better as we really have a very reduced
instruction set
This commit is contained in:
Torsten Ruger
2017-01-19 09:02:29 +02:00
parent da5823a1a0
commit aa79e41d1c
127 changed files with 348 additions and 346 deletions

View File

@ -10,7 +10,7 @@ module Fragments
# define setup to NOT load parfait.
def setup
@stdout = ""
@machine = Register.machine.boot
@machine = Risc.machine.boot
end
def main()

View File

@ -1,6 +1,6 @@
require_relative 'helper'
module Register
module Risc
class TestBasicClass < MiniTest::Test
include Fragments

View File

@ -21,7 +21,7 @@ module RuntimeTests
end
def load_program
@machine = Register.machine.boot
@machine = Risc.machine.boot
@machine.parse_and_compile main()
@machine.collect
end
@ -34,7 +34,7 @@ module RuntimeTests
def check_local ret = nil
load_program
interpreter = Register::Interpreter.new
interpreter = Risc::Interpreter.new
interpreter.start @machine.init
count = 0
begin
@ -89,7 +89,7 @@ module RuntimeTests
file_name = caller(3).first.split("in ").last.chop.sub("`","")
return if file_name.include?("run")
file_name = "./tmp/" + file_name + ".o"
Register.machine.translate_arm
Risc.machine.translate_arm
writer = Elf::ObjectWriter.new
writer.save file_name
file_name

View File

@ -11,7 +11,7 @@ module ParfaitTests
def setup
@stdout = ""
@machine = Register.machine.boot
@machine = Risc.machine.boot
Vm::Compiler.load_parfait
end