// Detect It Easy: detection rule file
// Author: horsicq <horsicq@gmail.com>

meta("compiler", "FASM");

includeScript("FASM");

function detect() {
    if (bFASM) {
        sVersion = PE.getCompilerVersion();
        bDetected = true;

        // Correct version
        if (PE.getMajorLinkerVersion() > 2) {
            sVersion += "*";
        }
    }

    sLang = "ASMx" + (PE.is64() ? "64" : "86");

    return result();
}