Mosa.Platform.x86.MachineCodeEmitter.Emit C# (CSharp) Method

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
        public void Emit(OpCode opCode)
        {
            // Write the opcode
            codeStream.Write(opCode.Code, 0, opCode.Code.Length);
        }

Same methods

MachineCodeEmitter::Emit ( Mosa.Platform.x86.OpCode opCode, Operand dest ) : void
MachineCodeEmitter::Emit ( Mosa.Platform.x86.OpCode opCode, Operand dest, Operand src ) : void
MachineCodeEmitter::Emit ( Mosa.Platform.x86.OpCode opCode, Operand dest, Operand src, Operand third ) : void

Usage Example

Esempio 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);
 }
All Usage Examples Of Mosa.Platform.x86.MachineCodeEmitter::Emit