home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / assemblr / library / zenlib / lst9_9.asm < prev    next >
Assembly Source File  |  1990-02-15  |  299b  |  15 lines

  1. ;
  2. ; *** Listing 9-9 ***
  3. ;
  4. ; Times the performance of two 16-bit register DEC
  5. ; instructions.
  6. ;
  7.     mov    dx,2000
  8.     call    ZTimerOn
  9. TestLoop:
  10.     dec    dx    ;subtract 2 from DX by decrementing
  11.     dec    dx    ; it twice (2 bytes long, uses
  12.             ; 2 16-bit-register-specific DECs)
  13.     jnz    TestLoop
  14.     call    ZTimerOff
  15.