Пример #1
0
 public override void Render(MachineInstructionWriter writer, MachineInstructionWriterOptions options)
 {
     writer.WriteOpcode(Opcode.ToString());
     if (Operand1 == null)
     {
         return;
     }
     writer.Tab();
     Operand1.Write(writer, options);
     if (Operand2 == null)
     {
         return;
     }
     writer.WriteString(",");
     Operand2.Write(writer, options);
     if (Operand3 == null)
     {
         return;
     }
     writer.WriteString(",");
     Operand3.Write(writer, options);
 }
Пример #2
0
 /// <summary>
 /// Write instruction operands into bytecode stream.
 /// </summary>
 /// <param name="writer">Bytecode writer.</param>
 public override void WriteOperands(WordWriter writer)
 {
     Operand1.Write(writer);
     Operand2.Write(writer);
 }