Fixed rounds reg write bug.
Changed order of words in and out.