示例#1
0
        bool Emulate_Brfalse()
        {
            var val1 = instructionEmulator.Pop();

            if (val1.IsInt32())
            {
                return(EmulateBranch(1, Int32Value.CompareFalse((Int32Value)val1)));
            }
            else if (val1.IsInt64())
            {
                return(EmulateBranch(1, Int64Value.CompareFalse((Int64Value)val1)));
            }
            else if (val1.IsReal8())
            {
                return(EmulateBranch(1, Real8Value.CompareFalse((Real8Value)val1)));
            }
            else if (val1.IsNull())
            {
                return(EmulateBranch(1, true));
            }
            else if (val1.IsObject() || val1.IsString())
            {
                return(EmulateBranch(1, false));
            }
            else
            {
                return(false);
            }
        }