Emit() public method

Emits the specified op code.
public Emit ( Mosa.Platform.x86.OpCode opCode ) : void
opCode Mosa.Platform.x86.OpCode The op code.
return void
Ejemplo n.º 1
0
 /// <summary>
 /// Emits the specified platform instruction.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="emitter">The emitter.</param>
 protected virtual void Emit(Context context, MachineCodeEmitter emitter)
 {
     OpCode opCode = ComputeOpCode(context.Result, context.Operand1, context.Operand2);
     emitter.Emit(opCode, context.Result, context.Operand1, context.Operand2);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Emits the specified platform instruction.
        /// </summary>
        /// <param name="node">The node.</param>
        /// <param name="emitter">The emitter.</param>
        protected virtual void Emit(InstructionNode node, MachineCodeEmitter emitter)
        {
            OpCode opCode = ComputeOpCode(node.Result, node.Operand1, node.Operand2);

            emitter.Emit(opCode, node.Result, node.Operand1, node.Operand2);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Emits the specified platform instruction.
 /// </summary>
 /// <param name="node">The node.</param>
 /// <param name="emitter">The emitter.</param>
 protected virtual void Emit(InstructionNode node, MachineCodeEmitter emitter)
 {
     OpCode opCode = ComputeOpCode(node.Result, node.Operand1, node.Operand2);
     emitter.Emit(opCode, node.Result, node.Operand1, node.Operand2);
 }