helper do get the register no as int for arm

This commit is contained in:
Torsten Ruger 2015-11-14 00:22:23 +02:00
parent 39eed43358
commit dbcd39c277

View File

@ -23,6 +23,10 @@ module Register
s s
end end
def reg_no
@type.to_s[1 .. -1].to_i
end
def self.look_like_reg is_it def self.look_like_reg is_it
return true if is_it.is_a? RegisterValue return true if is_it.is_a? RegisterValue
return false unless is_it.is_a? Symbol return false unless is_it.is_a? Symbol