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

  1. ;
  2. ; *** Listing 11.5 ***
  3. ;
  4. ; Measures the performance of adding an immediate value
  5. ; to a memory variable, for comparison with Listing 11.4,
  6. ; which adds an immediate value to a register.
  7. ;
  8.         jmp     Skip
  9. ;
  10.         even            ;always make sure word-sized memory
  11.                         ; variables are word-aligned!
  12. WordVar dw      0
  13. ;
  14. Skip:
  15.         call    ZTimerOn
  16.         rept    1000
  17.         add     dx,100h
  18.         endm
  19.         call    ZTimerOff