English 中文(简体)
不同的长篇论点如何与“达克”的指示相提并论?
原标题:How are variable length arguments parsed while parsing dalvik instructions?

Both move vA, vB and move-wide vA, vB involve the same operations and same operands. Except opcodes everything is the same. I am in a situation where I need to print the operands used by instructions in an application. So when I see the instruction move vA, vB I should print move va(*contents of va*), vb(*contents of vb*).
This works fine in the case of 4-byte registers. But when I encounter move-wide instructions, I should print the contents of vA and the contents of the next virtual register., contents of vB and the contents of the next virtual register.
What is the standard way of parsing these?

问题回答

由于Dalvik和dx都是公开来源,回答有关dex案卷问题的最佳办法是检查其来源。 https://github.com/android/platform_dalvik/blob/master/dx/src/com/android/dx/io/instructions/DecodedInstruction.java” rel=“nofollow” DecodedInstruction.java 。 它首先对密码进行编码,然后使用密码告知其余指示。

public static DecodedInstruction decode(CodeInput in) throws EOFException {
    int opcodeUnit = in.read();
    int opcode = Opcodes.extractOpcodeFromUnit(opcodeUnit);
    InstructionCodec format = OpcodeInfo.getFormat(opcode);
    return format.decode(opcodeUnit, in);
}




相关问题
How do you create a textbox in visual Studio with c#?

I feel kind of silly asking this question as it seems really simple, but how do I create a text box that I can type in instructions and stuff like that. I don t need the user to be able to change it, ...

Instructions loading into registers

In Instruction Set Architecture, are all kinds of instructions R- Type, I- Type, J-Type loaded into the same General Purpose Register or different kinds of instructions loaded into different registers ...

Problems with AdMob integration into Android App

I am quite new into Java and Android Apps, so , while this may be cake for others it gives me some headache . The app should load , play a sound file , and close . And it works fine without the AdMob ....

actions vs. avm instructions in actionscript

My questıon is that, what are actions and what are avm instructions. I ve been reading these two documents: http://www.adobe.com/devnet/swf/pdf/swf_file_format_spec_v10.pdf http://www.adobe.com/...

Instructions Package for Java

I want to make a help/instructions page for my Java program but I really don t want to have to go through and program all the frames and searching and such. Is there a package or program that I can ...

How many instructions to access pointer in C?

I am trying to figure out how many clock cycles or total instructions it takes to access a pointer in C. I dont think I know how to figure out for example, p->x = d->a + f->b i would assume two loads ...

热门标签