mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-0 corrected Lab5Script example for Advanced Development Class
This commit is contained in:
parent
bf0bc5a877
commit
7c87062515
2 changed files with 4 additions and 4 deletions
|
@ -27,8 +27,9 @@ public class Lab5Script extends GhidraScript {
|
|||
|
||||
@Override
|
||||
public void run() throws Exception {
|
||||
Instruction instruction = getFirstInstruction();
|
||||
while (instruction != null) {
|
||||
|
||||
for (Instruction instruction = getFirstInstruction(); instruction != null; instruction =
|
||||
getInstructionAfter(instruction)) {
|
||||
if (monitor.isCancelled()) {
|
||||
break;
|
||||
}
|
||||
|
@ -51,7 +52,6 @@ public class Lab5Script extends GhidraScript {
|
|||
String comment =
|
||||
"[" + register.getName() + "]=[" + scalar.toString(16, false, false, "", "") + "]";
|
||||
setEOLComment(instruction.getMinAddress(), comment);
|
||||
instruction = getInstructionAfter(instruction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue