home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / zenasmlg / zen_list.exe / LST4-2.ASM < prev    next >
Assembly Source File  |  1990-02-15  |  248b  |  17 lines

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