public void Render(MachineInstructionRenderer renderer, MachineInstructionRendererOptions options) { renderer.BeginOperand(); DoRender(renderer, options); renderer.EndOperand(); }
protected abstract void DoRender(MachineInstructionRenderer renderer, MachineInstructionRendererOptions options);
protected override void DoRender(MachineInstructionRenderer renderer, MachineInstructionRendererOptions options) { renderer.WriteString("st(" + fpuReg + ")"); }
protected override void DoRender(MachineInstructionRenderer renderer, MachineInstructionRendererOptions options) { renderer.WriteAddress(Address.ToString(), Address); }
protected virtual void DoRender(MachineInstructionRenderer renderer, MachineInstructionRendererOptions options) { }
/// <summary> /// Renders this instruction to the provided <see cref="MachineInstructionRenderer"/>. /// </summary> /// <param name="renderer"></param> /// <param name="options"></param> public void Render(MachineInstructionRenderer renderer, MachineInstructionRendererOptions options) { renderer.BeginInstruction(Address); DoRender(renderer, options); renderer.EndInstruction(); }
protected virtual void RenderOperand(MachineOperand operand, MachineInstructionRenderer renderer, MachineInstructionRendererOptions options) { operand.Render(renderer, options); }