if(register_STAT & 0x40 && register_IE & 2)
if((register_STAT & 0x40) && (register_IE & 2))
void gbCompareLYToLYC(){  if(register_LY == register_LYC) {    // mark that we have a match    register_STAT |= 4;        // check if we need an interrupt    if(register_STAT & 0x40 && register_IE & 2)      gbInterrupt |= 2;  } else // no match    register_STAT &= 0xfb;}