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

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