GameBoy\Opcode::opcode40 PHP Method

opcode40() public static method

JR cc, n
public static opcode40 ( Core $core )
$core Core
    public static function opcode40(Core $core)
    {
        if ($core->FZero) {
            $core->programCounter = $core->nswtuw($core->programCounter + $core->usbtsb($core->memoryRead($core->programCounter)) + 1);
            ++$core->CPUTicks;
        } else {
            $core->programCounter = $core->programCounter + 1 & 0xffff;
        }
    }
Opcode