⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ucodestaticmethods.java

📁 JPC: x86 PC Hardware Emulator. 牛津大学开发的一个纯JAVA的x86系统结构硬件模拟器。
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
    public static int eip_nef_JNC_O32_cs_eip_reg0_cflag(Segment cs, int eip, int reg0, boolean cflag) throws ProcessorException
    {
 	if (!cflag)
            return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JZ_O8_cs_eip_reg0_zflag(Segment cs, int eip, int reg0, boolean zflag) throws ProcessorException
    {
	if (zflag)
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JZ_O16_cs_eip_reg0_zflag(Segment cs, int eip, int reg0, boolean zflag) throws ProcessorException
    {
	if (zflag)
            return eip_nef_JUMP_O16_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JZ_O32_cs_eip_reg0_zflag(Segment cs, int eip, int reg0, boolean zflag) throws ProcessorException
    {
	if (zflag)
            return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNZ_O8_cs_eip_reg0_zflag(Segment cs, int eip, int reg0, boolean zflag) throws ProcessorException
    {
 	if (!zflag)
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNZ_O16_cs_eip_reg0_zflag(Segment cs, int eip, int reg0, boolean zflag) throws ProcessorException
    {
 	if (!zflag)
            return eip_nef_JUMP_O16_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNZ_O32_cs_eip_reg0_zflag(Segment cs, int eip, int reg0, boolean zflag) throws ProcessorException
    {
 	if (!zflag)
            return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNA_O8_cs_eip_reg0_cflag_zflag(Segment cs, int eip, int reg0, boolean cflag, boolean zflag) throws ProcessorException
    {
	if (cflag || zflag)
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNA_O16_cs_eip_reg0_cflag_zflag(Segment cs, int eip, int reg0, boolean cflag, boolean zflag) throws ProcessorException
    {
	if (cflag || zflag)
            return eip_nef_JUMP_O16_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNA_O32_cs_eip_reg0_cflag_zflag(Segment cs, int eip, int reg0, boolean cflag, boolean zflag) throws ProcessorException
    {
	if (cflag || zflag)
            return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JA_O8_cs_eip_reg0_cflag_zflag(Segment cs, int eip, int reg0, boolean cflag, boolean zflag) throws ProcessorException
    {
	if ((!cflag) && (!zflag)) 
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JA_O16_cs_eip_reg0_cflag_zflag(Segment cs, int eip, int reg0, boolean cflag, boolean zflag) throws ProcessorException
    {
	if ((!cflag) && (!zflag)) 
	    return eip_nef_JUMP_O16_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JA_O32_cs_eip_reg0_cflag_zflag(Segment cs, int eip, int reg0, boolean cflag, boolean zflag) throws ProcessorException
    {
	if ((!cflag) && (!zflag)) 
	    return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JS_O8_cs_eip_reg0_sflag(Segment cs, int eip, int reg0, boolean sflag) throws ProcessorException
    {
	if (sflag)
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JS_O16_cs_eip_reg0_sflag(Segment cs, int eip, int reg0, boolean sflag) throws ProcessorException
    {
	if (sflag)
            return eip_nef_JUMP_O16_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JS_O32_cs_eip_reg0_sflag(Segment cs, int eip, int reg0, boolean sflag) throws ProcessorException
    {
	if (sflag)
            return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNS_O8_cs_eip_reg0_sflag(Segment cs, int eip, int reg0, boolean sflag) throws ProcessorException
    {
 	if (!sflag)
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNS_O16_cs_eip_reg0_sflag(Segment cs, int eip, int reg0, boolean sflag) throws ProcessorException
    {
 	if (!sflag)
            return eip_nef_JUMP_O16_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNS_O32_cs_eip_reg0_sflag(Segment cs, int eip, int reg0, boolean sflag) throws ProcessorException
    {
 	if (!sflag)
            return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JP_O8_cs_eip_reg0_pflag(Segment cs, int eip, int reg0, boolean pflag) throws ProcessorException
    {
 	if (pflag)
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JP_O16_cs_eip_reg0_pflag(Segment cs, int eip, int reg0, boolean pflag) throws ProcessorException
    {
 	if (pflag)
            return eip_nef_JUMP_O16_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JP_O32_cs_eip_reg0_pflag(Segment cs, int eip, int reg0, boolean pflag) throws ProcessorException
    {
 	if (pflag)
            return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNP_O8_cs_eip_reg0_pflag(Segment cs, int eip, int reg0, boolean pflag) throws ProcessorException
    {
 	if (!pflag)
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNP_O16_cs_eip_reg0_pflag(Segment cs, int eip, int reg0, boolean pflag) throws ProcessorException
    {
	if (!pflag)
            return eip_nef_JUMP_O16_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNP_O32_cs_eip_reg0_pflag(Segment cs, int eip, int reg0, boolean pflag) throws ProcessorException
    {
	if (!pflag)
            return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JL_O8_cs_eip_reg0_oflag_sflag(Segment cs, int eip, int reg0, boolean oflag, boolean sflag) throws ProcessorException
    {
 	if (sflag != oflag) 
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JL_O16_cs_eip_reg0_oflag_sflag(Segment cs, int eip, int reg0, boolean oflag, boolean sflag) throws ProcessorException
    {
 	if (sflag != oflag) 
            return eip_nef_JUMP_O16_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JL_O32_cs_eip_reg0_oflag_sflag(Segment cs, int eip, int reg0, boolean oflag, boolean sflag) throws ProcessorException
    {
 	if (sflag != oflag) 
            return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNL_O8_cs_eip_reg0_oflag_sflag(Segment cs, int eip, int reg0, boolean oflag, boolean sflag) throws ProcessorException
    {
	if (sflag == oflag) 
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNL_O16_cs_eip_reg0_oflag_sflag(Segment cs, int eip, int reg0, boolean oflag, boolean sflag) throws ProcessorException
    {
	if (sflag == oflag) 
            return eip_nef_JUMP_O16_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNL_O32_cs_eip_reg0_oflag_sflag(Segment cs, int eip, int reg0, boolean oflag, boolean sflag) throws ProcessorException
    {
	if (sflag == oflag) 
            return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNG_O8_cs_eip_reg0_zflag_sflag_oflag(Segment cs, int eip, int reg0, boolean zflag, boolean sflag, boolean oflag) throws ProcessorException
    {
	if (zflag || (sflag != oflag)) 
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNG_O16_cs_eip_reg0_zflag_sflag_oflag(Segment cs, int eip, int reg0, boolean zflag, boolean sflag, boolean oflag) throws ProcessorException
    {
	if (zflag || (sflag != oflag)) 
            return eip_nef_JUMP_O16_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JNG_O32_cs_eip_reg0_zflag_sflag_oflag(Segment cs, int eip, int reg0, boolean zflag, boolean sflag, boolean oflag) throws ProcessorException
    {
	if (zflag || (sflag != oflag)) 
            return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JG_O8_cs_eip_reg0_zflag_sflag_oflag(Segment cs, int eip, int reg0, boolean zflag, boolean sflag, boolean oflag) throws ProcessorException
    {
 	if ((!zflag) && (sflag == oflag)) 
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JG_O16_cs_eip_reg0_zflag_sflag_oflag(Segment cs, int eip, int reg0, boolean zflag, boolean sflag, boolean oflag) throws ProcessorException
    {
 	if ((!zflag) && (sflag == oflag)) 
            return eip_nef_JUMP_O16_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JG_O32_cs_eip_reg0_zflag_sflag_oflag(Segment cs, int eip, int reg0, boolean zflag, boolean sflag, boolean oflag) throws ProcessorException
    {
 	if ((!zflag) && (sflag == oflag)) 
            return eip_nef_JUMP_O32_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JCXZ_cs_eip_reg0_ecx(Segment cs, int eip, int reg0, int ecx) throws ProcessorException
    {
	if ((ecx & 0xffff) == 0)
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int eip_nef_JECXZ_cs_eip_reg0_ecx(Segment cs, int eip, int reg0, int ecx) throws ProcessorException
    {
	if (ecx == 0)
            return eip_nef_JUMP_O8_cs_eip_reg0(cs, eip, reg0);
        return eip;
    }

    public static int reg0_nef_AND_reg0_reg1(int reg0, int reg1)
    {
        return reg0 & reg1;
    }

    public static int reg0_nef_OR_reg0_reg1(int reg0, int reg1)
    {
        return reg0 | reg1;
    }

    public static int reg0_nef_XOR_reg0_reg1(int reg0, int reg1)
    {
        return reg0 ^ reg1;
    }

    public static int reg0_nef_NOT_reg0(int reg0)
    {
        return ~reg0;
    }

    public static boolean cflag_nef_BITWISE_FLAGS_O8()
    {
        return false;
    }

    public static boolean oflag_nef_BITWISE_FLAGS_O8()
    {
        return false;
    }

    public static boolean pflag_nef_BITWISE_FLAGS_O8_reg0(int reg0)
    {
        return parityMap[reg0 & 0xff];
    }

    public static boolean sflag_nef_BITWISE_FLAGS_O8_reg0(int reg0)
    {
        return (((byte) reg0) < 0);
    }

    public static boolean zflag_nef_BITWISE_FLAGS_O8_reg0(int reg0)
    {
        return (((byte) reg0) == 0);
    }

    public static boolean cflag_nef_BITWISE_FLAGS_O16()
    {
        return false;
    }

    public static boolean oflag_nef_BITWISE_FLAGS_O16()
    {
        return false;
    }

    public static boolean pflag_nef_BITWISE_FLAGS_O16_reg0(int reg0)
    {
        return parityMap[reg0 & 0xff];
    }

    public static boolean sflag_nef_BITWISE_FLAGS_O16_reg0(int reg0)
    {
        return (((short) reg0) < 0);
    }

    public static boolean zflag_nef_BITWISE_FLAGS_O16_reg0(int reg0)
    {
        return (((short) reg0) == 0);
    }

    public static boolean cflag_nef_BITWISE_FLAGS_O32()
    {
        return false;
    }

    public static boolean oflag_nef_BITWISE_FLAGS_O32()
    {
        return false;
    }

    public static boolean pflag_nef_BITWISE_FLAGS_O32_reg0(int reg0)
    {
        return parityMap[reg0 & 0xff];
    }

    public static boolean sflag_nef_BITWISE_FLAGS_O32_reg0(int reg0)
    {
        return (reg0 < 0);
    }

    public static boolean zflag_nef_BITWISE_FLAGS_O32_reg0(int reg0)
    {
        return (reg0 == 0);
    }

    public static int reg0_nef_SHL_reg0_reg1(int reg0, int reg1)
    {
        return reg0 << reg1; //count masking is done by java << operation
    }

    public static int reg1_nef_SHL_reg1(int reg1)
    {
        return reg1 & 0x1f; 
    }

    public static int reg2_nef_SHL_reg0(int reg0)
    {
        return reg0; 
    }

    public static boolean cflag_nef_SHL_O8_FLAGS_cflag_reg0_reg1(boolean cflag, int reg0, int reg1)
    {
        if (reg1 > 0)
            return ((reg0 & 0x100) != 0);
        return cflag;
    }

    public static boolean oflag_nef_SHL_O8_FLAGS_oflag_reg2_reg1(boolean oflag, int reg2, int reg1)
    {
        if (reg1 == 1)
            return ((reg2 & 0xc0) != 0) && ((reg2 & 0xc0) != 0xc0);
        return oflag;
    }

    public static boolean pflag_nef_SHL_O8_FLAGS_pflag_reg0_reg1(boolean pflag, int reg0, int reg1)
    {
        if (reg1 > 0)
            return parityMap[reg0 & 0xff];
        return pflag;
    }

    public static boolean sflag_nef_SHL_O8_FLAGS_sflag_reg0_reg1(boolean sflag, int reg0, int reg1)
    {
        if (reg1 > 0)
            return (((byte) reg0) < 0);
        return sflag;
    }

    public static boolean zflag_nef_SHL_O8_FLAGS_zflag_reg0_reg1(boolean zflag, int reg0, int reg1)
    {
        if (reg1 > 0)
            return (((byte) reg0) == 0);
        return zflag;
    }

    public static boolean cflag_nef_SHL_O16_FLAGS_cflag_reg0_reg1(boolean cflag, int reg0, int reg1)
    {
        if (reg1 > 0)
            return ((reg0 & 0x10000) != 0);
        return cflag;
    }

    public static boolean oflag_nef_SHL_O16_FLAGS_oflag_reg2_reg1(boolean oflag, int reg2, int reg1)
    {
        if (reg1 == 1)
            return ((reg2 & 0xc000) != 0) && ((reg2 & 0xc000) != 0xc000);
        return oflag;
    }

    public static boolean pflag_nef_SHL_O16_FLAGS_pflag_reg0_reg1(boolean pflag, int reg0, int reg1)
    {
        if (reg1 > 0)
            return parityMap[reg0 & 0xff];
        return pflag;
    }

    public static boolean sflag_nef_SHL_O16_FLAGS_sflag_reg0_reg1(boolean sflag, int reg0, int reg1)
    {
        if (reg1 > 0)
            return (((short) reg0) < 0);
        return sflag;
    }

    public static boolean zflag_nef_SHL_O16_FLAGS_zflag_reg0_reg1(boolean zflag, int reg0, int reg1)
    {
        if (reg1 > 0)
            return (((short) reg0) == 0);
        return zflag;
    }

    public static boolean cflag_nef_SHL_O32_FLAGS_cflag_reg2_reg1(boolean cflag, int reg2, int reg1)
    {
        if (reg1 > 0)
            return (((reg2 << (reg1 - 1)) & 0x80000000) != 0);
        return cflag;
    }

    public static boolean oflag_nef_SHL_O32_FLAGS_oflag_reg2_reg1(boolean oflag, int reg2, int reg1)
    {
        if (reg1 == 1)
	    return ((reg2 & 0xc0000000) != 0) && ((reg2 & 0xc0000000) != 0xc0000000);
        return oflag;
    }

    public static boolean pflag_nef_SHL_O32_FLAGS_pflag_reg0_reg1(boolean pflag, int reg0, int reg1)
    {
        if (reg1 > 0)
            return parityMap[reg0 & 0xff];
        return pflag;
    }

    public static boolean sflag_nef_SHL_O32_FLAGS_sflag_reg0_reg1(boolean sflag, int reg0, int reg1)
    {
        if (reg1 > 0)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -