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

@ -10,5 +10,10 @@ module Register
@constant = constant
end
attr_accessor :register , :constant
def to_s
"LoadConstant(#{register}: #{constant})"
end
end
end