mirror of
https://github.com/revanced/smali.git
synced 2025-05-03 08:04:28 +02:00
Position the reader correctly after a nop
This commit is contained in:
parent
38e925db25
commit
1c3a283ac3
@ -48,6 +48,11 @@ public abstract class DexBackedInstruction {
|
||||
if (opcodeValue == 0) {
|
||||
reader.moveRelative(-1);
|
||||
opcodeValue = reader.readUshort();
|
||||
if (opcodeValue == 0) {
|
||||
// if we've got a real nop, and not a payload instruction, back up a byte,
|
||||
// so that the reader is positioned just after the single opcode byte, for consistency
|
||||
reader.moveRelative(-1);
|
||||
}
|
||||
}
|
||||
|
||||
Opcode opcode = Opcode.getOpcodeByValue(opcodeValue);
|
||||
|
Loading…
x
Reference in New Issue
Block a user