mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GT-3190: Fixing Advanced Development Lab 5 Answer (closes #1028).
This commit is contained in:
parent
91e4fd7fb7
commit
2839527a23
2 changed files with 2 additions and 4 deletions
|
@ -910,8 +910,7 @@
|
|||
|
||||
<annot>@Override</annot>
|
||||
<kw>public</kw> <kw>void</kw> run() <kw>throws</kw> Exception {
|
||||
<if>Instruction</if> <loc>instruction</loc> = getFirstInstruction();
|
||||
<kw>while</kw> (<loc>instruction</loc> != <kw>null</kw>) {
|
||||
<kw>for</kw> (<if>Instruction</if> <loc>instruction</loc> = getFirstInstruction(); <loc>instruction</loc> != <kw>null</kw>; <loc>instruction</loc> = getNextInstruction()) {
|
||||
<kw>if</kw> ( <fld>monitor</fld>.isCancelled() ) {
|
||||
<kw>break</kw>;
|
||||
}
|
||||
|
@ -933,7 +932,6 @@
|
|||
Scalar <loc>scalar</loc> = (Scalar) <loc>opObjects1</loc>[<lit>0</lit>];
|
||||
String <loc>comment</loc> = <strlit>"["</strlit> + <loc>register</loc>.getName() + <strlit>"]=["</strlit> + <loc>scalar</loc>.toString(<lit>16</lit>, <kw>false</kw>, <kw>false</kw>, <stlrit>""</strlit>, <strlit>""</strlit>) + <strlit>"]"</strlit>;
|
||||
setEOLComment(<loc>instruction</loc>.getMinAddress(), <loc>comment</loc>);
|
||||
<loc>instruction</loc> = getNextInstruction();
|
||||
}
|
||||
}
|
||||
}</codeblock>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue