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

  1. ;
  2. ; *** Listing 12-4 ***
  3. ;
  4. ; Measures the performance of JMP when 1) the prefetch queue
  5. ; is full when it comes time for each JMP to run and 2) the
  6. ; prefetch queue is allowed to fill faster than the
  7. ; instruction bytes after the JMP are requested by the EU,
  8. ; so the EU doesn't have to wait for instruction bytes.
  9. ;
  10.     call    ZTimerOn
  11.     rept    1000
  12.     push    ax    ;let the prefetch queue fill while
  13.             ; the first instruction byte after
  14.             ; each branch executes
  15.     jmp    short $+2    ;we'll do a short jump,
  16.                 ; since the next instruction
  17.                 ; is less than 127 bytes
  18.                 ; away
  19.     endm
  20.     call    ZTimerOff
  21.