Return correct values for getter methods
Convert register name to string

Ruby 1.8 doesn't support Symbol#upcase