* [Q] Scanning for keypresses on a Microvax...
@ 1995-06-14 4:00 Greg Chapman
1995-06-15 4:00 ` Hein RMS van den Heuvel
1995-06-20 4:00 ` Ed Sirett
0 siblings, 2 replies; 3+ messages in thread
From: Greg Chapman @ 1995-06-14 4:00 UTC (permalink / raw)
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...
--
Greg Chapman - Mac/WWW Programmer/Developer
London, Ontario, Canada
email: gchapman@icis.on.ca
---
"... cleans teeth, while you do dishes!"
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Q] Scanning for keypresses on a Microvax...
1995-06-14 4:00 [Q] Scanning for keypresses on a Microvax Greg Chapman
@ 1995-06-15 4:00 ` Hein RMS van den Heuvel
1995-06-20 4:00 ` Ed Sirett
1 sibling, 0 replies; 3+ messages in thread
From: Hein RMS van den Heuvel @ 1995-06-15 4:00 UTC (permalink / raw)
In article <gchapman-1306952120050001@ts1-10.icis.on.ca>, gchapman@icis.on.ca (Greg Chapman) 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...
Why use Macro? Surely Pascal can handle this?
What operating system? May I assume VMS?
Just call SYS$QIOW reading 1 character directly
from PASCAL, or check out...
$HELP RTL SMG$ SMG$READ_KEYSTROKE
Hope this helps, +--------------------------------------+
Hein van den Heuvel, Digital. | All opinions expressed are mine, and |
"Makers of VMS and other | may not reflect those of my employer |
fine Operating Systems." +--------------------------------------+
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Q] Scanning for keypresses on a Microvax...
1995-06-14 4:00 [Q] Scanning for keypresses on a Microvax Greg Chapman
1995-06-15 4:00 ` Hein RMS van den Heuvel
@ 1995-06-20 4:00 ` Ed Sirett
1 sibling, 0 replies; 3+ messages in thread
From: Ed Sirett @ 1995-06-20 4:00 UTC (permalink / raw)
In article <gchapman-1306952120050001@ts1-10.icis.on.ca> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-06-20 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-06-14 4:00 [Q] Scanning for keypresses on a Microvax Greg Chapman
1995-06-15 4:00 ` Hein RMS van den Heuvel
1995-06-20 4:00 ` Ed Sirett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox