just a little more precise
This commit is contained in:
parent
e20fba61d9
commit
5539d8fe32
@ -24,10 +24,12 @@ module Register
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.look_like_reg is_it
|
def self.look_like_reg is_it
|
||||||
|
return false unless is_it.is_a? Symbol
|
||||||
if( [:lr , :pc].include? is_it )
|
if( [:lr , :pc].include? is_it )
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
if( (is_it.to_s.length < 3) and (is_it.to_s[0] == "r"))
|
if( (is_it.to_s.length < 3) and (is_it.to_s[0] == "r"))
|
||||||
|
# could tighten this by checking that the rest is a number
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user