Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8f2fd391
Commit
8f2fd391
authored
Mar 14, 1999
by
Ove Kaaven
Committed by
Alexandre Julliard
Mar 14, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fully implemented Direct Console Input.
parent
88e651da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
5 deletions
+26
-5
int21.c
msdos/int21.c
+26
-5
No files found.
msdos/int21.c
View file @
8f2fd391
...
...
@@ -1170,13 +1170,34 @@ void WINAPI DOS3Call( CONTEXT *context )
break
;
case
0x06
:
/* DIRECT CONSOLE IN/OUTPUT */
TRACE
(
int21
,
"Direct Console Input/Output
\n
"
);
if
(
DL_reg
(
context
)
==
0xff
)
{
FIXME
(
int21
,
"Direct Console Input should not block
\n
"
);
AL_reg
(
context
)
=
CONSOLE_GetCharacter
();
FL_reg
(
context
)
&=
~
0x40
;
/* clear ZF */
}
else
static
char
scan
=
0
;
TRACE
(
int21
,
"Direct Console Input
\n
"
);
if
(
scan
)
{
/* return pending scancode */
AL_reg
(
context
)
=
scan
;
FL_reg
(
context
)
&=
~
0x40
;
/* clear ZF */
scan
=
0
;
}
else
{
char
ascii
;
if
(
CONSOLE_CheckForKeystroke
(
&
scan
,
&
ascii
))
{
CONSOLE_GetKeystroke
(
&
scan
,
&
ascii
);
/* return ASCII code */
AL_reg
(
context
)
=
ascii
;
FL_reg
(
context
)
&=
~
0x40
;
/* clear ZF */
/* return scan code on next call only if ascii==0 */
if
(
ascii
)
scan
=
0
;
}
else
{
/* nothing pending, clear everything */
AL_reg
(
context
)
=
0
;
FL_reg
(
context
)
|=
0x40
;
/* set ZF */
scan
=
0
;
/* just in case */
}
}
}
else
{
TRACE
(
int21
,
"Direct Console Output
\n
"
);
CONSOLE_Write
(
DL_reg
(
context
),
0
,
0
,
0
);
}
break
;
case
0x07
:
/* DIRECT CHARACTER INPUT WITHOUT ECHO */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment