Ejemplo n.º 1
0
        public void Print(IPrintState state)
        {
            switch (this.Operand)
            {
            case OperandType.Integer:
            case OperandType.Float:
            case OperandType.Object:
            {
                state.Print("push", this.Operand, this.Value);
                return;
            }

            case OperandType.String:
            {
                var value = (string)this.Value;
                state.Print("push", this.Operand, "\"" + value + "\"");
                return;
            }

            case OperandType.Resource:
            {
                var value = (string)this.Value;
                state.Print("push", this.Operand, "'" + value + "'");
                return;
            }
            }

            throw new NotSupportedException();
        }
Ejemplo n.º 2
0
 public void Print(IPrintState state)
 {
     if (this.Operand == Script.OperandType.StructureStructure)
     {
         state.Print("eq", this.Operand, this.StructureSize);
     }
     else
     {
         state.Print("eq", this.Operand);
     }
 }
Ejemplo n.º 3
0
 public void Print(IPrintState state)
 {
     if (this.Operand == Script.OperandType.StructureStructure)
     {
         state.Print("eq", this.Operand, this.StructureSize);
     }
     else
     {
         state.Print("eq", this.Operand);
     }
 }
Ejemplo n.º 4
0
        public void Print(IPrintState state)
        {
            //state.Print("movsp", this.Value);

            if (this.Value >= 0)
            {
                state.Print("addsp", this.Value);
            }
            else
            {
                state.Print("subsp", -this.Value);
            }
        }
        public void Print(IPrintState state)
        {
            //state.Print("movsp", this.Value);

            if (this.Value >= 0)
            {
                state.Print("addsp", this.Value);
            }
            else
            {
                state.Print("subsp", -this.Value);
            }
        }
Ejemplo n.º 6
0
 public void Print(IPrintState state)
 {
     state.Print("destruct", this.Unknown1, this.Unknown2, this.Unknown3);
 }
Ejemplo n.º 7
0
 public void Print(IPrintState state)
 {
     state.Print("destruct", this.Unknown1, this.Unknown2, this.Unknown3);
 }
Ejemplo n.º 8
0
 public void Print(IPrintState state)
 {
     state.Print("reserve", this.Operand);
 }
Ejemplo n.º 9
0
 public void Print(IPrintState state)
 {
     state.Print("syscall", this.Routine, this.ArgumentCount);
 }
Ejemplo n.º 10
0
 public void Print(IPrintState state)
 {
     state.Print("???U49", this.Unknown1, this.Unknown2);
 }
Ejemplo n.º 11
0
 public void Print(IPrintState state)
 {
     state.Print("nop");
 }
Ejemplo n.º 12
0
 public void Print(IPrintState state)
 {
     state.Print("jz", state.GetLabel(this.Destination));
 }
Ejemplo n.º 13
0
 public void Print(IPrintState state)
 {
     state.Print("restorebp");
 }
Ejemplo n.º 14
0
 public void Print(IPrintState state)
 {
     state.Print("reserve", this.Operand);
 }
Ejemplo n.º 15
0
        public void Print(IPrintState state)
        {
            switch (this.Operand)
            {
                case OperandType.Integer:
                case OperandType.Float:
                case OperandType.Object:
                {
                    state.Print("push", this.Operand, this.Value);
                    return;
                }

                case OperandType.String:
                {
                    var value = (string)this.Value;
                    state.Print("push", this.Operand, "\"" + value + "\"");
                    return;
                }

                case OperandType.Resource:
                {
                    var value = (string)this.Value;
                    state.Print("push", this.Operand, "'" + value + "'");
                    return;
                }
            }

            throw new NotSupportedException();
        }
Ejemplo n.º 16
0
 public void Print(IPrintState state)
 {
     state.Print("cptopbp", this.Destination, this.ByteCount);
 }
Ejemplo n.º 17
0
 public void Print(IPrintState state)
 {
     state.Print("nop");
 }
Ejemplo n.º 18
0
 public void Print(IPrintState state)
 {
     state.Print("decisp", this.Destination);
 }
Ejemplo n.º 19
0
 public void Print(IPrintState state)
 {
     state.Print("savebp");
 }
Ejemplo n.º 20
0
 public void Print(IPrintState state)
 {
     state.Print("ret");
 }
Ejemplo n.º 21
0
 public void Print(IPrintState state)
 {
     state.Print("jz", state.GetLabel(this.Destination));
 }
Ejemplo n.º 22
0
 public void Print(IPrintState state)
 {
     state.Print("div", this.Operand);
 }
Ejemplo n.º 23
0
 public void Print(IPrintState state)
 {
     state.Print("???U49", this.Unknown1, this.Unknown2);
 }
Ejemplo n.º 24
0
 public void Print(IPrintState state)
 {
     state.Print("restorebp");
 }
Ejemplo n.º 25
0
 public void Print(IPrintState state)
 {
     state.Print("gt", this.Operand);
 }
 public void Print(IPrintState state)
 {
     state.Print("incisp", this.Destination);
 }
Ejemplo n.º 27
0
 public void Print(IPrintState state)
 {
     state.Print("ret");
 }
Ejemplo n.º 28
0
 public void Print(IPrintState state)
 {
     state.Print("savebp");
 }
 public void Print(IPrintState state)
 {
     state.Print("cptopsp", this.Destination, this.ByteCount);
 }
Ejemplo n.º 30
0
 public void Print(IPrintState state)
 {
     state.Print("syscall", this.Routine, this.ArgumentCount);
 }