// Detect It Easy: detection rule file format

init("compiler", "FASM");

includeScript("FASM");

function detect(bShowType, bShowVersion, bShowOptions) {
    if (bFASM) {
        sVersion = PE.getCompilerVersion();
        sOptions = PE.getGeneralOptionsEx(); // FASM doesn't have a linker
        bDetected = true;

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

    _setLang("ASMx" + (PE.is64() ? "64" : "86"), bDetected);
    return result(bShowType, bShowVersion, bShowOptions);
}
