home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / source / chapter11 / l11-3.asm < prev    next >
Assembly Source File  |  1997-06-18  |  441b  |  16 lines

  1. ;
  2. ; *** Listing 11-3 ***
  3. ;
  4. ; Measures the performance of accesses to word-sized
  5. ; variables that start at even addresses (are word-aligned).
  6. ;
  7. Skip:
  8.         push    ds
  9.         pop     es
  10.         sub     si,si   ;source and destination are the same
  11.         mov     di,si   ; and both are word-aligned
  12.         mov     cx,1000 ;move 1000 words
  13.         cld
  14.         call    ZTimerOn
  15.         rep     movsw
  16.         call    ZTimerOff