Fixed bug reported by Steven J. Ackerman that makes wrong register being
returned when writting registers >0x80.