move type to phial and add type to reg_ref

This commit is contained in:
Torsten Ruger
2015-10-10 19:14:27 +03:00
parent cb306c09f0
commit dd3381e38b
15 changed files with 65 additions and 54 deletions

View File

@ -18,8 +18,8 @@ module Register
# Note: this may be reversed from some assembler notations (also arm)
def initialize source , from , to
super(source)
@from = wrap_register(from)
@to = wrap_register(to)
@from = wrap_register(from,:int)
@to = wrap_register(to,:int)
end
attr_reader :from, :to