to_s for reg instructions

This commit is contained in:
Torsten Ruger
2015-07-24 13:23:56 +03:00
parent fa552bf751
commit 139b0174d8
10 changed files with 47 additions and 5 deletions

View File

@ -27,6 +27,11 @@ module Register
raise "Not register #{array}" unless Register::RegisterReference.look_like_reg(array)
end
attr_accessor :register , :array , :index
def to_s
"GetSlot(#{register}: #{array}[#{index}])"
end
end
# Produce a GetSlot instruction.