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

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