Exemple #1
0
 /// <summary>
 /// Generates the label itself (using the ASM block) and the line of assembly for the label.
 /// </summary>
 /// <param name="theBlock">The block for which the comment is to be generated.</param>
 /// <returns>The complete line of assembly code.</returns>
 public override string Convert(ASMBlock theBlock)
 {
     if (MethodLabel)
     {
         return(theBlock.GenerateMethodLabel() + ":");
     }
     else
     {
         return(theBlock.GenerateILOpLabel(ILPosition, Extension) + ":");
     }
 }
Exemple #2
0
 /// <summary>
 /// Generates the complete line of assembling using the Text field.
 /// </summary>
 /// <param name="theBlock">The block for which the comment is to be generated.</param>
 /// <returns>The complete line of assembly code.</returns>
 public override string Convert(ASMBlock theBlock)
 {
     return("#" + Text);
 }
Exemple #3
0
 public override string Convert(ASMBlock theBlock)
 {
     return("la " + Dest + ", " + Label);
 }
Exemple #4
0
 /// <summary>
 /// Generates the line of assembly for the external label.
 /// </summary>
 /// <param name="theBlock">The block for which the comment is to be generated.</param>
 /// <returns>The complete line of assembly code.</returns>
 public override string Convert(ASMBlock theBlock)
 {
     return("extern " + Label);
 }
Exemple #5
0
 public override string Convert(ASMBlock theBlock)
 {
     return("mfhi " + Dest);
 }
Exemple #6
0
 /// <summary>
 /// Generates the line of assembly for the global label.
 /// </summary>
 /// <param name="theBlock">The block for which the comment is to be generated.</param>
 /// <returns>The complete line of assembly code.</returns>
 public override string Convert(ASMBlock theBlock)
 {
     return("global " + Label + ":" + LabelType);
 }
Exemple #7
0
 /// <summary>
 /// Generates the line of assembly for the global label.
 /// </summary>
 /// <param name="theBlock">The block for which the comment is to be generated.</param>
 /// <returns>The complete line of assembly code.</returns>
 public override string Convert(ASMBlock theBlock)
 {
     return(".globl " + Label);
 }
Exemple #8
0
 public override string Convert(ASMBlock theBlock)
 {
     return("nop");
 }