示例#1
0
 public void assemble(Emit emit, String source, Enumeration<String> comments) {
   while (comments.hasMoreElements()) {
     emit.emit("\t# ");
     emit.emit(comments.nextElement());
     emit.endLine();
   }
   if (!nis) {
     emit.emit("\t# Instruction Scheduling");
     emit.endLine();
   }
   XyzAssembler asm = new XyzAssembler(this, source, !nis);
   asm.assemble(emit, dataAreas);
 }
示例#2
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");
 }