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
17a9e349
Commit
17a9e349
authored
Jan 31, 1999
by
Ove Kaaven
Committed by
Alexandre Julliard
Jan 31, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added missing includes (the PSP handling was incorrect, as the
MZ_SUPPORTED definition was missing). Added a simple handler for direct console input, which needs to be improved.
parent
408b0852
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
int21.c
msdos/int21.c
+12
-5
No files found.
msdos/int21.c
View file @
17a9e349
...
...
@@ -25,6 +25,8 @@
#include "task.h"
#include "options.h"
#include "miscemu.h"
#include "dosexe.h"
/* for the MZ_SUPPORTED define */
#include "module.h"
#include "debug.h"
#include "console.h"
#if defined(__svr4__) || defined(_SCO_DS)
...
...
@@ -975,8 +977,8 @@ INT21_networkfunc (CONTEXT *context)
static
void
INT21_SetCurrentPSP
(
WORD
psp
)
{
#ifdef MZ_SUPPORTED
TDB
*
pTask
=
hModule
?
NULL
:
(
TDB
*
)
GlobalLock16
(
GetCurrentTask
()
);
NE_MODULE
*
pModule
=
(
hModule
||
pTask
)
?
NE_GetPtr
(
hModule
?
hModule
:
pTask
->
hModule
)
:
NULL
;
TDB
*
pTask
=
(
TDB
*
)
GlobalLock16
(
GetCurrentTask
()
);
NE_MODULE
*
pModule
=
pTask
?
NE_GetPtr
(
pTask
->
hModule
)
:
NULL
;
GlobalUnlock16
(
GetCurrentTask
()
);
if
(
pModule
->
lpDosTask
)
...
...
@@ -989,8 +991,8 @@ static void INT21_SetCurrentPSP(WORD psp)
static
WORD
INT21_GetCurrentPSP
()
{
#ifdef MZ_SUPPORTED
TDB
*
pTask
=
hModule
?
NULL
:
(
TDB
*
)
GlobalLock16
(
GetCurrentTask
()
);
NE_MODULE
*
pModule
=
(
hModule
||
pTask
)
?
NE_GetPtr
(
hModule
?
hModule
:
pTask
->
hModule
)
:
NULL
;
TDB
*
pTask
=
(
TDB
*
)
GlobalLock16
(
GetCurrentTask
()
);
NE_MODULE
*
pModule
=
pTask
?
NE_GetPtr
(
pTask
->
hModule
)
:
NULL
;
GlobalUnlock16
(
GetCurrentTask
()
);
if
(
pModule
->
lpDosTask
)
...
...
@@ -1137,7 +1139,12 @@ void WINAPI DOS3Call( CONTEXT *context )
case
0x06
:
/* DIRECT CONSOLE IN/OUTPUT */
TRACE
(
int21
,
"Direct Console Input/Output
\n
"
);
CONSOLE_Write
(
DL_reg
(
context
),
0
,
0
,
0
);
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
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