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

  1. ; Listing 4.2. LST4-2.ASM
  2. ; Measures the performance of a loop which uses a
  3. ; word-sized memory variable as the loop counter.
  4. ;
  5.     jmp    Skip
  6. ;
  7. Counter    dw    100
  8. ;
  9. Skip:
  10.     call    ZTimerOn
  11. LoopTop:
  12.     dec    [Counter]
  13.     jnz    LoopTop
  14.     call    ZTimerOff
  15.