home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / PROG / ASSEMBLY / ZENDISK2.ZIP / LST12-3.ASM < prev    next >
Encoding:
Assembly Source File  |  1990-02-15  |  395 b   |  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.