helper do get the register no as int for arm
This commit is contained in:
parent
39eed43358
commit
dbcd39c277
@ -23,6 +23,10 @@ module Register
|
||||
s
|
||||
end
|
||||
|
||||
def reg_no
|
||||
@type.to_s[1 .. -1].to_i
|
||||
end
|
||||
|
||||
def self.look_like_reg is_it
|
||||
return true if is_it.is_a? RegisterValue
|
||||
return false unless is_it.is_a? Symbol
|
||||
|
Loading…
Reference in New Issue
Block a user