public function matchLYC()
{
// LY - LYC Compare
// If LY==LCY
if ($this->core->memory[0xff44] == $this->core->memory[0xff45]) {
$this->core->memory[0xff41] |= 0x4;
// set STAT bit 2: LY-LYC coincidence flag
if ($this->LYCMatchTriggerSTAT) {
$this->core->memory[0xff0f] |= 0x2;
// set IF bit 1
}
} else {
$this->core->memory[0xff41] &= 0xfb;
// reset STAT bit 2 (LY!=LYC)
}
}