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

  1. ;
  2. ; *** Listing 8-4 ***
  3. ;
  4. ; Tests the zero/non-zero status of a variable via
  5. ; the accumulator-specific form of MOV followed by a
  6. ; register-register AND.
  7. ;
  8.     jmp    Skip
  9. ;
  10. TestValue    dw    ?
  11. ;
  12. Skip:
  13.     call    ZTimerOn
  14.     rept    1000
  15.     mov    ax,[TestValue]
  16.     and    ax,ax
  17.     endm
  18.     call    ZTimerOff
  19.