GameBoy\LcdController::scanLineMode0 PHP Method

scanLineMode0() public method

public scanLineMode0 ( )
    public function scanLineMode0()
    {
        // H-Blank
        if ($this->modeSTAT != 0) {
            if ($this->core->hdmaRunning && !$this->core->halt && $this->LCDisOn) {
                $this->performHdma();
                //H-Blank DMA
            }
            if ($this->mode0TriggerSTAT || $this->mode2TriggerSTAT && $this->STATTracker == 0) {
                $this->core->memory[0xff0f] |= 0x2;
                // if STAT bit 3 -> set IF bit1
            }
            $this->notifyScanline();
            $this->STATTracker = 2;
            $this->modeSTAT = 0;
        }
    }