/// <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) + ":"); } }
/// <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); }
public override string Convert(ASMBlock theBlock) { return("la " + Dest + ", " + Label); }
/// <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); }
public override string Convert(ASMBlock theBlock) { return("mfhi " + Dest); }
/// <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); }
/// <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); }
public override string Convert(ASMBlock theBlock) { return("nop"); }