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
f7bd7adb
Commit
f7bd7adb
authored
May 22, 1999
by
Ove Kaaven
Committed by
Alexandre Julliard
May 22, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added INT_Int16AddChar.
parent
d88e7661
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
int16.c
msdos/int16.c
+18
-0
No files found.
msdos/int16.c
View file @
f7bd7adb
...
...
@@ -12,6 +12,7 @@
#include "wincon.h"
#include "debug.h"
#include "winuser.h"
#include "miscemu.h"
DEFAULT_DEBUG_CHANNEL
(
int16
)
...
...
@@ -122,3 +123,20 @@ void WINAPI INT_Int16Handler( CONTEXT *context )
}
}
int
WINAPI
INT_Int16AddChar
(
BYTE
ascii
,
BYTE
scan
)
{
BIOSDATA
*
data
=
DOSMEM_BiosData
();
WORD
CurOfs
=
data
->
FirstKbdCharPtr
;
WORD
NextOfs
=
CurOfs
+
2
;
if
(
NextOfs
>=
data
->
KbdBufferEnd
)
NextOfs
=
data
->
KbdBufferStart
;
/* check if buffer is full */
if
(
NextOfs
==
data
->
NextKbdCharPtr
)
return
0
;
/* okay, insert character in ring buffer */
((
BYTE
*
)
data
)[
CurOfs
]
=
ascii
;
((
BYTE
*
)
data
)[
CurOfs
+
1
]
=
scan
;
data
->
FirstKbdCharPtr
=
NextOfs
;
return
1
;
}
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