Bounds-check for setting register value