public String toString() { StringBuffer buf = new StringBuffer(Opcodes.getOp(this)); buf.append(getOperandSizeLabel()); buf.append('\t'); buf.append(reg); return buf.toString(); }
public String toString() { if ((flags & UNBOUNDED) != 0) return "[...]"; if (((flags & INTNOE) != 0) && (numberOfElements == 0)) return "[0]"; StringBuffer buf = new StringBuffer("["); try { buf.append(getConstMin()); } catch (scale.common.InvalidException ex) { buf.append(min); } buf.append(".."); try { buf.append(getConstMax()); } catch (scale.common.InvalidException ex) { buf.append(max); } buf.append(']'); return buf.toString(); }
/** * Generate a String representation of a Displacement that can be used by the assembly code * generater. */ public String assembleDisp(Assembler asm, Displacement disp, int ftn) { if (ftn == SparcGenerator.FT_NONE) return disp.assembler(asm); StringBuffer buf = new StringBuffer(SparcGenerator.ftns[ftn]); buf.append('('); buf.append(disp.assembler(asm)); buf.append(')'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(Opcodes.getOp(this)); buf.append("\t%"); if (opcode == Opcodes.RR) buf.append(SparcGenerator.sRegs[rs1]); else buf.append(SparcGenerator.pRegs[rs1]); buf.append(",%"); buf.append(rd); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(Opcodes.getOp(this)); buf.append('\t'); buf.append(rd); buf.append(','); buf.append("0x" + Integer.toHexString(cv)); buf.append(','); buf.append("0x" + Integer.toHexString(cv2)); return buf.toString(); }
/** * Generate a String representation of a Displacement that can be used by the assembly code * generater. */ public String assembleDisp(Assembler asm, Displacement disp, int ftn, boolean macosx) { if (ftn == PPCGenerator.FT_NONE) { String dispString = disp.assembler(asm); if (dispString == "") return "0"; else return dispString; } if (macosx) { StringBuffer buf = new StringBuffer(""); buf.append(PPCGenerator.ftnsMacosx[ftn]); buf.append('('); buf.append(disp.assembler(asm)); buf.append(')'); return buf.toString(); } StringBuffer buf = new StringBuffer(""); buf.append(disp.assembler(asm)); buf.append('@'); buf.append(PPCGenerator.ftnsLinux[ftn]); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer("{RG "); int len = refs.size(); if (len > 3) len = 3; for (int i = 0; i < len; i++) { if (i > 0) buf.append(','); buf.append(refs.elementAt(i)); } if (len < refs.size()) buf.append(", ..."); buf.append('}'); return buf.toString(); }
public String toString() { StringBuffer buf = new StringBuffer(Opcodes.getOp(this)); buf.append("\t"); buf.append(const22); return buf.toString(); }