home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / PROG / ASSEMBLY / ZENDISK1.ZIP / LST9-19.ASM < prev    next >
Encoding:
Assembly Source File  |  1990-02-15  |  322 b   |  19 lines

  1. ;
  2. ; *** Listing 9-19 ***
  3. ;
  4. ; Times the performance of SUB with a register as the
  5. ; destination operand and memory as the source operand.
  6. ;
  7.     jmp    Skip
  8. ;
  9. Dest    db    0
  10. ;
  11. Skip:
  12.     call    ZTimerOn
  13.     rept    1000
  14.     sub    al,[Dest]    ;subtract [Dest] from AL
  15.                 ; Only 1 memory access
  16.                 ; is performed
  17.     endm
  18.     call    ZTimerOff
  19.