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

  1. ;
  2. ; *** Listing 10-1 ***
  3. ;
  4. ; Loads each byte in a 1000-byte array into AL, using
  5. ; MOV and INC.
  6. ;
  7.     jmp    Skip
  8. ;
  9. ARRAY_LENGTH    equ    1000
  10. ByteArray    db    ARRAY_LENGTH dup (0)
  11. ;
  12. Skip:
  13.     call    ZTimerOn
  14.     mov    si,offset ByteArray
  15.             ;point to the start of the array
  16.     rept    ARRAY_LENGTH
  17.     mov    al,[si]    ;get this array byte
  18.     inc    si    ;point to the next byte in the array
  19.     endm
  20.     call    ZTimerOff
  21.