home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / asmutil / zendisk2.zip / LST12-3.ASM < prev    next >
Assembly Source File  |  1990-02-15  |  395b  |  17 lines

  1. ;
  2. ; *** Listing 12-3 ***
  3. ;
  4. ; Measures the performance of JMP when the prefetch queue
  5. ; is full when it comes time for each JMP to run.
  6. ;
  7.     sub    ax,ax    ;we'll multiply zero times zero
  8.     call    ZTimerOn
  9.     rept    1000
  10.     imul    ax    ;let the prefetch queue fill
  11.     jmp    short $+2    ;we'll do a short jump,
  12.                 ; since the next instruction
  13.                 ; is less than 127 bytes
  14.                 ; away
  15.     endm
  16.     call    ZTimerOff
  17.