move registers to hash

This commit is contained in:
Torsten Ruger
2015-07-23 13:20:53 +03:00
parent aa2303ddaa
commit 2645f54d5b
2 changed files with 4 additions and 4 deletions

View File

@@ -5,6 +5,6 @@ class Interpreter
attr_accessor :registers
def initialize
@registers = (0...12).collect{|i| "r#{i}"}
@registers = Hash[(0...12).collect{|i| ["r#{i}" , "undefined"]}]
end
end