home *** CD-ROM | disk | FTP | other *** search
/ Graphics Programming Black Book (Special Edition) / BlackBook.bin / disk1 / zenasmlg / zen_list.exe / LST8-2.ASM < prev    next >
Assembly Source File  |  1990-02-15  |  282b  |  19 lines

  1. ;
  2. ; *** Listing 8-2 ***
  3. ;
  4. ; Copies a byte via AL, with memory addressed with
  5. ; accumulator-specific direct addressing.
  6. ;
  7.     jmp    Skip
  8. ;
  9. SourceValue    db    1
  10. DestValue    db    0
  11. ;
  12. Skip:
  13.     call    ZTimerOn
  14.     rept    1000
  15.     mov    al,[SourceValue]
  16.     mov    [DestValue],al
  17.     endm
  18.     call    ZTimerOff
  19.