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); }
/** 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"); }