An x86 machine code emitter.
Inheritance: Mosa.Compiler.Framework.BaseCodeEmitter, IDisposable
Example #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);
 }
Example #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);
 }