GameBoy\Opcode::run PHP Method

run() public static method

Run the given opcode.
public static run ( Core $core, integer $address ) : mixed
$core Core
$address integer
return mixed
    public static function run(Core $core, $address)
    {
        $function = 'opcode' . $address;
        return Opcode::$function($core);
    }
Opcode