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
8818e259
Commit
8818e259
authored
Dec 07, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Dec 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Add load/str multiple operators to Thumb2 disassembler.
parent
2c01e11e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
be_arm.c
programs/winedbg/be_arm.c
+30
-0
No files found.
programs/winedbg/be_arm.c
View file @
8818e259
...
...
@@ -1118,6 +1118,35 @@ static UINT thumb2_disasm_coprocdatatrans(UINT inst, ADDRESS64 *addr)
return
0
;
}
static
UINT
thumb2_disasm_ldrstrmul
(
UINT
inst
,
ADDRESS64
*
addr
)
{
short
load
=
(
inst
>>
20
)
&
0x01
;
short
writeback
=
(
inst
>>
21
)
&
0x01
;
short
decbefore
=
(
inst
>>
24
)
&
0x01
;
short
i
;
short
last
=
15
;
for
(
i
=
15
;
i
>=
0
;
i
--
)
if
((
inst
>>
i
)
&
1
)
{
last
=
i
;
break
;
}
if
(
writeback
&&
get_nibble
(
inst
,
4
)
==
13
)
dbg_printf
(
"
\n\t
%s
\t
{"
,
load
?
"pop"
:
"push"
);
else
dbg_printf
(
"
\n\t
%s%s
\t
%s%s, {"
,
load
?
"ldm"
:
"stm"
,
decbefore
?
"db"
:
"ia"
,
tbl_regs
[
get_nibble
(
inst
,
4
)],
writeback
?
"!"
:
""
);
for
(
i
=
0
;
i
<=
15
;
i
++
)
if
((
inst
>>
i
)
&
1
)
{
if
(
i
==
last
)
dbg_printf
(
"%s"
,
tbl_regs
[
i
]);
else
dbg_printf
(
"%s, "
,
tbl_regs
[
i
]);
}
dbg_printf
(
"}"
);
return
0
;
}
struct
inst_arm
{
UINT
mask
;
...
...
@@ -1196,6 +1225,7 @@ static const struct inst_arm tbl_thumb32[] = {
{
0xef000010
,
0xee000010
,
thumb2_disasm_coprocmov1
},
{
0xefe00000
,
0xec400000
,
thumb2_disasm_coprocmov2
},
{
0xee000000
,
0xec000000
,
thumb2_disasm_coprocdatatrans
},
{
0xfe402000
,
0xe8000000
,
thumb2_disasm_ldrstrmul
},
{
0x00000000
,
0x00000000
,
NULL
}
};
...
...
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