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
9f5ef0b4
Commit
9f5ef0b4
authored
Jul 29, 2000
by
Ove Kaaven
Committed by
Alexandre Julliard
Jul 29, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make direct console input routines go through int16, rather than
reading directly from the console driver.
parent
e4e99a5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
int21.c
msdos/int21.c
+11
-9
No files found.
msdos/int21.c
View file @
9f5ef0b4
...
...
@@ -29,11 +29,10 @@
#include "heap.h"
#include "msdos.h"
#include "ldt.h"
#include "task.h"
#include "options.h"
#include "miscemu.h"
#include "task.h"
#include "dosexe.h"
/* for the MZ_SUPPORTED define */
#include "module.h"
#include "debugtools.h"
#include "console.h"
...
...
@@ -1151,27 +1150,28 @@ void WINAPI DOS3Call( CONTEXT86 *context )
break
;
case
0x06
:
/* DIRECT CONSOLE IN/OUTPUT */
/* FIXME: Use DOSDEV_Peek/Read/Write(DOSDEV_Console(),...) !! */
if
(
DL_reg
(
context
)
==
0xff
)
{
static
char
scan
=
0
;
TRACE
(
"Direct Console Input
\n
"
);
if
(
scan
)
{
/* return pending scancode */
AL_reg
(
context
)
=
scan
;
EFL_reg
(
context
)
&=
~
0x40
;
/* clear ZF */
RESET_ZFLAG
(
context
);
scan
=
0
;
}
else
{
char
ascii
;
if
(
CONSOLE_CheckForKeystroke
(
&
scan
,
&
ascii
))
{
CONSOLE_GetKeystroke
(
&
scan
,
&
ascii
);
if
(
INT_Int16ReadChar
(
&
ascii
,
&
scan
,
TRUE
))
{
INT_Int16ReadChar
(
&
ascii
,
&
scan
,
FALSE
);
/* return ASCII code */
AL_reg
(
context
)
=
ascii
;
EFL_reg
(
context
)
&=
~
0x40
;
/* clear ZF */
RESET_ZFLAG
(
context
);
/* return scan code on next call only if ascii==0 */
if
(
ascii
)
scan
=
0
;
}
else
{
/* nothing pending, clear everything */
AL_reg
(
context
)
=
0
;
EFL_reg
(
context
)
|=
0x40
;
/* set ZF */
SET_ZFLAG
(
context
);
scan
=
0
;
/* just in case */
}
}
...
...
@@ -1182,13 +1182,15 @@ void WINAPI DOS3Call( CONTEXT86 *context )
break
;
case
0x07
:
/* DIRECT CHARACTER INPUT WITHOUT ECHO */
/* FIXME: Use DOSDEV_Peek/Read(DOSDEV_Console(),...) !! */
TRACE
(
"DIRECT CHARACTER INPUT WITHOUT ECHO
\n
"
);
AL_reg
(
context
)
=
CONSOLE_GetCharacter
(
);
INT_Int16ReadChar
(
&
AL_reg
(
context
),
NULL
,
FALSE
);
break
;
case
0x08
:
/* CHARACTER INPUT WITHOUT ECHO */
/* FIXME: Use DOSDEV_Peek/Read(DOSDEV_Console(),...) !! */
TRACE
(
"CHARACTER INPUT WITHOUT ECHO
\n
"
);
AL_reg
(
context
)
=
CONSOLE_GetCharacter
(
);
INT_Int16ReadChar
(
&
AL_reg
(
context
),
NULL
,
FALSE
);
break
;
case
0x09
:
/* WRITE STRING TO STANDARD OUTPUT */
...
...
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