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

  1. ;
  2. ; *** Listing 9-8 ***
  3. ;
  4. ; Times the performance of a 16-bit subtraction
  5. ; of an immediate value of 1.
  6. ;
  7.     mov    dx,1000
  8.     call    ZTimerOn
  9. TestLoop:
  10.     sub    dx,1    ;decrement DX by subtracting 1 from
  11.             ; it (3 bytes long, uses sign-
  12.             ; extended mod-reg-rm form of SUB)
  13.     jnz    TestLoop
  14.     call    ZTimerOff
  15.