Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shen, Siran
arm11_
Commits
d1aea6b7
Commit
d1aea6b7
authored
Jun 13, 2020
by
Shen, Siran
Browse files
all tests pass now apart from gpis which is optional
parent
097de796
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/instrType.c
View file @
d1aea6b7
...
...
@@ -229,13 +229,13 @@ void single_data_transfer_instr(decoded *decodedInstr, armstate *state){
if
(
data
<
65535
)
{
state
->
regs
[
rd
]
=
*
memAdd
;
}
else
{
printf
(
"Error: Out of bounds memory access at address 0x%x
\n
"
,
data
);
printf
(
"Error: Out of bounds memory access at address 0x%
08
x
\n
"
,
data
);
}
}
else
{
if
((
data
<
65535
&&
immediate
==
0
)
||
immediate
==
1
)
{
*
memAdd
=
state
->
regs
[
rd
];
}
else
{
printf
(
"Error: Out of bounds memory access at address 0x%x
\n
"
,
data
);
printf
(
"Error: Out of bounds memory access at address 0x%
08
x
\n
"
,
data
);
}
}
}
...
...
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