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

@ -15,11 +15,16 @@ module Register
# First argument from
# second arguemnt to
#
# Note: this may be reversed from some assembler notations (also arm)
# Note: this may be reversed from some assembler notations (also arm)
def initialize from , to
@from = wrap_register(from)
@to = wrap_register(to)
end
attr_reader :from, :to
def to_s
"RegisterTransfer(#{from} -> #{to})"
end
end
end