コード例 #1
0
ファイル: X86RBranch.java プロジェクト: troore/scale
 public String toString() {
   StringBuffer buf = new StringBuffer(Opcodes.getOp(this));
   buf.append(getOperandSizeLabel());
   buf.append('\t');
   buf.append(reg);
   return buf.toString();
 }
コード例 #2
0
ファイル: ReadRegInstruction.java プロジェクト: troore/scale
 /** 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));
 }
コード例 #3
0
ファイル: X86RBranch.java プロジェクト: troore/scale
  /** 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));
  }
コード例 #4
0
ファイル: ReadRegInstruction.java プロジェクト: troore/scale
  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();
  }
コード例 #5
0
ファイル: FDccInstruction.java プロジェクト: troore/scale
 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();
 }
コード例 #6
0
ファイル: FDccInstruction.java プロジェクト: troore/scale
  /** 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));
  }
コード例 #7
0
ファイル: PPCInstruction.java プロジェクト: troore/scale
 public String toString() {
   return Opcodes.getOp(this);
 }
コード例 #8
0
ファイル: PPCInstruction.java プロジェクト: troore/scale
 /** Insert the assembler representation of the instruction into the output stream. */
 public void assembler(Assembler gen, Emit emit) {
   emit.emit(Opcodes.getOp(this));
 }
コード例 #9
0
ファイル: OpConInstruction.java プロジェクト: troore/scale
 public String toString() {
   StringBuffer buf = new StringBuffer(Opcodes.getOp(this));
   buf.append("\t");
   buf.append(const22);
   return buf.toString();
 }
コード例 #10
0
ファイル: OpConInstruction.java プロジェクト: troore/scale
 /** 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);
 }