Writing a Hardware Register