home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / assembler / thesource / volume2 / source / system / asmmacros.lha / WaitForChar.i < prev    next >
Encoding:
Text File  |  1990-11-16  |  474 b   |  13 lines

  1.      NOLIST
  2. WaitForChar  MACRO             ; 10 Jan 88
  3. *------------------------------; Start of WaitForChar macro.
  4.                                ; Put file handle in D1.
  5.      MOVE.L \1,D1
  6.                                ; Put timeout in D2.
  7.      MOVE.L #\2*10000,D2
  8.      CallLib WaitForChar,dos   ; Call WaitForChar.
  9.      TST.L D0                  ; Make the Z-flag indicate char availability.
  10. *------------------------------; End of WaitForChar macro.
  11.      ENDM
  12.      LIST
  13.