home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / source / chapter4 / lst4-5.asm < prev    next >
Assembly Source File  |  1997-06-18  |  326b  |  13 lines

  1. ; Listing 4.5. LST4-5.ASM
  2. ; Measures the performance of 1000 SHR instructions
  3. ; in a row. Since SHR executes in 2 cycles but is
  4. ; 2 bytes long, the prefetch queue is always empty,
  5. ; and prefetching time determines the overall
  6. ; performance of the code.
  7. ;
  8.     call    ZTimerOn
  9.     rept    1000
  10.     shr    ax,1
  11.     endm
  12.     call    ZTimerOff
  13.