Mail Archives: djgpp/1998/08/08/06:33:05
From: | "Rylan" <rylan AT intekom DOT co DOT za>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Testing for a key in an inline assembly loop
|
Date: | Sat, 8 Aug 1998 12:10:52 +0200
|
Organization: | The South African Internet Exchange
|
Lines: | 22
|
Message-ID: | <6qh8i2$mf$1@news2.saix.net>
|
Reply-To: | "Rylan" <rylan AT inbtekom DOT co DOT za>
|
NNTP-Posting-Host: | pc25-01-p02.saix.net
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Hi,
How can I test for a key press in an inline assembly loop in DJGPP? I tried
using a __dpmi_int call, which works fine for int 16h function 0x00 which
waits until a key is pressed, then continues, so my interrupt setup seems to
work. But when I try function 0x01 of int 16h, which sets the zero flag if a
key has been pressed, how can I test the flags set by an int executed for me
by __dpmi_int? 'Cause it seems that __dpmi_int alters them on exit of
itself?
Is there a way to do this? If I am on the wrong track then - how can I test
for a keypress in inline DJGPP assembler??
Please reply by mail if at all possible!
Fanx!
--
Spawned By Rylan
Is truth beauty or beauty truth?
- Raw text -