Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
a63458d8
Commit
a63458d8
authored
26 years ago
by
Andreas Mohr
Committed by
Alexandre Julliard
26 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Some interrupt enhancements.
parent
935ccabe
Loading
Loading
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
include/miscemu.h
+6
-0
6 additions, 0 deletions
include/miscemu.h
msdos/int10.c
+9
-2
9 additions, 2 deletions
msdos/int10.c
msdos/int21.c
+6
-2
6 additions, 2 deletions
msdos/int21.c
msdos/interrupts.c
+6
-0
6 additions, 0 deletions
msdos/interrupts.c
with
27 additions
and
4 deletions
include/miscemu.h
+
6
−
0
View file @
a63458d8
...
...
@@ -55,9 +55,15 @@ extern void WINAPI INT_Int10Handler(CONTEXT*);
/* msdos/int11.c */
extern
void
WINAPI
INT_Int11Handler
(
CONTEXT
*
);
/* msdos/int12.c */
extern
void
WINAPI
INT_Int12Handler
(
CONTEXT
*
);
/* msdos/int13.c */
extern
void
WINAPI
INT_Int13Handler
(
CONTEXT
*
);
/* msdos/int15.c */
extern
void
WINAPI
INT_Int15Handler
(
CONTEXT
*
);
/* msdos/int16.c */
extern
void
WINAPI
INT_Int16Handler
(
CONTEXT
*
);
...
...
This diff is collapsed.
Click to expand it.
msdos/int10.c
+
9
−
2
View file @
a63458d8
...
...
@@ -18,6 +18,8 @@ static void scroll_window(int direction, char lines, char row1,
static
int
color_pallet
[
16
];
static
char
dummy
;
/* dummy var used for unneeded CONSOLE function parameter */
#define SCROLL_UP 1
#define SCROLL_DOWN 2
...
...
@@ -188,8 +190,13 @@ void WINAPI INT_Int10Handler( CONTEXT *context )
break
;
case
0x08
:
/* READ CHARACTER AND ATTRIBUTE AT CURSOR POSITION */
FIXME
(
int10
,
"Read Character and Attribute at Cursor Position - Not Supported
\n
"
);
{
CHAR
ch
,
attr
;
TRACE
(
int10
,
"Read Character and Attribute at Cursor Position
\n
"
);
CONSOLE_GetCharacterAtCursor
(
&
ch
,
&
dummy
,
&
dummy
,
&
attr
);
AL_reg
(
context
)
=
ch
;
AH_reg
(
context
)
=
attr
;
}
break
;
case
0x09
:
/* WRITE CHARACTER AND ATTRIBUTE AT CURSOR POSITION */
...
...
This diff is collapsed.
Click to expand it.
msdos/int21.c
+
6
−
2
View file @
a63458d8
...
...
@@ -1155,8 +1155,12 @@ void WINAPI DOS3Call( CONTEXT *context )
DS_reg
(
context
),
DX_reg
(
context
)
);
{
LPSTR
data
=
CTX_SEG_OFF_TO_LIN
(
context
,
DS_reg
(
context
),
EDX_reg
(
context
));
LONG
length
=
strchr
(
data
,
'$'
)
-
data
;
_hwrite16
(
1
,
data
,
length
);
LPSTR
p
=
data
;
/* do NOT use strchr() to calculate the string length,
as '\0' is valid string content, too !
Maybe we should check for non-'$' strings, but DOS doesn't. */
while
(
*
p
!=
'$'
)
p
++
;
_hwrite16
(
1
,
data
,
(
int
)
p
-
(
int
)
data
);
AL_reg
(
context
)
=
'$'
;
/* yes, '$' (0x24) gets returned in AL */
}
break
;
...
...
This diff is collapsed.
Click to expand it.
msdos/interrupts.c
+
6
−
0
View file @
a63458d8
...
...
@@ -111,9 +111,15 @@ int INT_RealModeInterrupt( BYTE intnum, PCONTEXT context )
case
0x11
:
INT_Int11Handler
(
context
);
break
;
case
0x12
:
INT_Int12Handler
(
context
);
break
;
case
0x13
:
INT_Int13Handler
(
context
);
break
;
case
0x15
:
INT_Int15Handler
(
context
);
break
;
case
0x16
:
INT_Int16Handler
(
context
);
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment