Finished flag setting, instruction functions, and fixed bitwise operations in StatusRegister