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

  1. ;
  2. ; *** Listing 8-3 ***
  3. ;
  4. ; Tests the zero/non-zero status of a variable via
  5. ; the direct-addressing mod-reg-rm form of CMP.
  6. ;
  7.     jmp    Skip
  8. ;
  9. TestValue    dw    ?
  10. ;
  11. Skip:
  12.     call    ZTimerOn
  13.     rept    1000
  14.     cmp    [TestValue],0
  15.     endm
  16.     call    ZTimerOff
  17.