Implemented register decoding