implemented CMP command
implemented StatusRegister with flags