From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,c7c81d37e27d6403 X-Google-Attributes: gid1164f8,public From: Ed Sirett Subject: Re: [Q] Scanning for keypresses on a Microvax... Date: 1995/06/20 Message-ID: <3s6m6q$191@news.cityscape.co.uk>#1/1 X-Deja-AN: 104726187 distribution: world references: content-type: text/plain; charset=ISO-8859-1 x-xxmessage-id: organization: Engineering Software mime-version: 1.0 newsgroups: comp.sys.dec In article Greg Chapman, gchapman@icis.on.ca writes: >If anyone can get me some macro (assembly) code on the MicroVax, to scan >for a key press (it'll be linked as an object to a pascal program)... I'd >be very grateful... > Should not need to use Macro. Check out SYS$QIOW with IO$_SENSEMODE ored with IO$M_TYPEAHEADCOUNT. The function will return you (via pointer in p7) the number of keypress in the buffer and also inform you of the first character therein (if any) - It does *not* read that character until you call SYS$QIOW with IO$_READxxxx