Exemplo n.º 1
0
 public String toString() {
   StringBuffer buf = new StringBuffer(Opcodes.getOp(this));
   buf.append(getOperandSizeLabel());
   buf.append('\t');
   buf.append(reg);
   return buf.toString();
 }
Exemplo n.º 2
0
 /** Insert the assembler representation of the instruction into the output stream. */
 public void assembler(Assembler gen, Emit emit) {
   emit.emit(Opcodes.getOp(this));
   emit.emit("\t%");
   if (opcode == Opcodes.RR) emit.emit(SparcGenerator.sRegs[rs1]);
   else emit.emit(SparcGenerator.pRegs[rs1]);
   emit.emit(',');
   emit.emit(gen.assembleRegister(rd));
 }
Exemplo n.º 3
0
  /** Insert the assembler representation of the instruction into the output stream. */
  public void assembler(Assembler asm, Emit emit) {
    if (nullified()) emit.emit("nop ! ");

    emit.emit(Opcodes.getOp(this));
    emit.emit(getOperandSizeLabel());
    emit.emit('\t');

    emit.emit(asm.assembleRegister(reg));
  }
Exemplo n.º 4
0
  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();
  }
Exemplo n.º 5
0
 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();
 }
Exemplo n.º 6
0
  /** Insert the assembler representation of the instruction into the output stream. */
  public void assembler(Assembler asm, Emit emit) {
    if (nullified()) emit.emit("nop ! ");

    emit.emit(Opcodes.getOp(opcode));
    emit.emit('\t');
    emit.emit(asm.assembleRegister(rd));
    emit.emit(',');
    emit.emit("0x" + Integer.toHexString(cv));
    emit.emit(',');
    emit.emit("0x" + Integer.toHexString(cv2));
  }
Exemplo n.º 7
0
 public String toString() {
   return Opcodes.getOp(this);
 }
Exemplo n.º 8
0
 /** Insert the assembler representation of the instruction into the output stream. */
 public void assembler(Assembler gen, Emit emit) {
   emit.emit(Opcodes.getOp(this));
 }
Exemplo n.º 9
0
 public String toString() {
   StringBuffer buf = new StringBuffer(Opcodes.getOp(this));
   buf.append("\t");
   buf.append(const22);
   return buf.toString();
 }
Exemplo n.º 10
0
 /** Insert the assembler representation of the instruction into the output stream. */
 public void assembler(Assembler asm, Emit emit) {
   emit.emit(Opcodes.getOp(this));
   emit.emit('\t');
   emit.emit(const22);
 }