示例#1
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));
  }
示例#2
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));
  }
示例#3
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));
 }
示例#4
0
 /** Insert the assembler representation of the instruction into the output stream. */
 public void assembler(Assembler gen, Emit emit) {
   emit.emit(Opcodes.getOp(this));
 }
示例#5
0
 /** Assemble the delay slot instruction. */
 protected final void assembleDelay(Assembler asm, Emit emit) {
   emit.endLine();
   emit.emit('\t');
   if (delaySlot != null) delaySlot.assembler(asm, emit);
   else emit.emit("nop");
 }
示例#6
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);
 }