public void SetBits(BitValue b7, BitValue b6, BitValue b5, BitValue b4, BitValue b3, BitValue b2, BitValue b1, BitValue b0) { var adr = GetBytePointer(); var b = new Types.Byte(GetByte(adr)); b.Modify(b7, b6, b5, b4, b3, b2, b1, b0); SetByte(adr, b.Value); }
internal Compare(int operation, int type, Expression left, Expression right) : base(left, right) { this.Operation = operation; Types.Base myType; switch (type) { case 0: myType = new Types.Integer(); break; case 2: myType = new Types.Real(); break; case 4: myType = new Types.String(); break; case 6: myType = new Types.Boolean(); break; //case 8: // myType = new Set(); // break; case 10: myType = new Types.Byte(); break; case 12: myType = new Types.Array(); break; default: throw new DecompilationException(); } var b = false; left.Type.MeetWith(myType, ref b); right.Type.MeetWith(myType, ref b); }