make the interpreter platform

but still using the risc_instruction stream
This commit is contained in:
Torsten Ruger
2018-05-17 09:31:36 +03:00
parent 07ed16d765
commit 49c4d170ce
9 changed files with 131 additions and 20 deletions

View File

@ -15,14 +15,17 @@ module Risc
end
# Factory method to create a Platform object according to the platform
# string given.
# Currently only "Arm"
# Currently only "Arm" and "Interpreter"
def self.for( name )
case name
when "Arm"
return Arm::ArmPlatform.new
when "Interpreter"
return Risc::InterpreterPlatform.new
else
raise "not recignized platform #{name}"
end
end
end
end
require_relative "interpreter_platform"