fixing and testing operators

This commit is contained in:
Torsten Ruger
2015-10-15 09:32:47 +03:00
parent e436581ce8
commit 3d83f203ca
9 changed files with 69 additions and 33 deletions

View File

@ -18,8 +18,10 @@ module Register
# Note: this may be reversed from some assembler notations (also arm)
def initialize source , from , to
super(source)
@from = wrap_register(from,:int)
@to = wrap_register(to,:int)
@from = from
@to = to
raise "Fix me #{from}" unless from.is_a? RegisterValue
raise "Fix me #{to}" unless to.is_a? RegisterValue
end
attr_reader :from, :to