2005-01-31 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / ilasm / codegen / IntInstr.cs
1 //
2 // Mono.ILASM.IntInstr
3 //
4 // Author(s):
5 //  Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
9
10
11 using System;
12
13 namespace Mono.ILASM {
14
15         public class IntInstr : IInstr {
16
17                 private PEAPI.IntOp op;
18                 private int operand;
19
20                 public IntInstr (PEAPI.IntOp op, int operand, Location loc)
21                         : base (loc)
22                 {
23                         this.op = op;
24                         this.operand = operand;
25                 }
26
27                 public override void Emit (CodeGen code_gen, MethodDef meth,
28                                            PEAPI.CILInstructions cil)
29                 {
30                         cil.IntInst (op, operand);
31                 }
32
33         }
34
35 }
36