first interpreter tests

This commit is contained in:
2020-03-13 20:18:34 +02:00
parent c16ed5ab3a
commit 1378745907
7 changed files with 34 additions and 36 deletions

View File

@ -106,7 +106,7 @@ module Risc
ins.register.set_compiler(self)
add_code ins
# todo for constants (not objects)
add_constant( object) if object.is_a?(Parfait::Object)
add_constant( object) if object.is_a?(Parfait::Object)
# add_constant(right) if compiler
ins.register
end

View File

@ -17,7 +17,7 @@ module Risc
# return the number of registers the platform supports
def num_registers
end
# Factory method to create a Platform object according to the platform
# string given.
# Currently only "Arm" and "Interpreter"