fix the reg test (one off)

This commit is contained in:
Torsten Ruger 2015-07-24 17:23:44 +03:00
parent 139b0174d8
commit 772212bad9

View File

@ -32,7 +32,7 @@ module Register
if( [:lr , :pc].include? is_it )
return true
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
end