Added bit operations and FLAG register functions.