Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9c789f29
Commit
9c789f29
authored
Jun 19, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Jun 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl: Add emulation for 'movzx {Eb,Ew}, Gv' instruction.
parent
411cdeba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
instr.c
dlls/ntoskrnl.exe/instr.c
+24
-0
No files found.
dlls/ntoskrnl.exe/instr.c
View file @
9c789f29
...
@@ -675,6 +675,30 @@ static DWORD emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT *context )
...
@@ -675,6 +675,30 @@ static DWORD emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT *context )
switch
(
*
instr
)
switch
(
*
instr
)
{
{
case
0x0f
:
/* extended instruction */
switch
(
instr
[
1
])
{
case
0xb6
:
/* movzx Eb, Gv */
case
0xb7
:
/* movzx Ew, Gv */
{
BYTE
*
data
=
INSTR_GetOperandAddr
(
context
,
instr
+
2
,
long_addr
,
rex
,
segprefix
,
&
len
);
unsigned
int
data_size
=
(
instr
[
1
]
==
0xb7
)
?
2
:
1
;
unsigned
int
offset
=
data
-
user_shared_data
;
if
(
offset
<=
sizeof
(
KSHARED_USER_DATA
)
-
data_size
)
{
ULONGLONG
temp
=
0
;
memcpy
(
&
temp
,
wine_user_shared_data
+
offset
,
data_size
);
store_reg_word
(
context
,
instr
[
2
],
(
BYTE
*
)
&
temp
,
long_op
,
rex
);
context
->
Rip
+=
prefixlen
+
len
+
2
;
return
ExceptionContinueExecution
;
}
break
;
/* Unable to emulate it */
}
}
break
;
/* Unable to emulate it */
case
0x8a
:
/* mov Eb, Gb */
case
0x8a
:
/* mov Eb, Gb */
case
0x8b
:
/* mov Ev, Gv */
case
0x8b
:
/* mov Ev, Gv */
{
{
...
...
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