Class DirectEncodedMemoryArea
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.processor.memory.AbstractEncodedMemoryArea
com.pnfsoftware.jeb.core.units.code.asm.processor.memory.DirectEncodedMemoryArea
- All Implemented Interfaces:
IEncodedMemoryArea
Represent a memory Area in code. A memory area is composed of an index and a length
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdecode(byte[] code) static intdecodeInt(int index, int length, byte[] code) static DirectEncodedMemoryAreaget(int index, int length) Build aDirectEncodedMemoryAreafrom index, length.intgetIndex()intstatic DirectEncodedMemoryAreagetThumb2(int index, int zone, int length) Build anDirectEncodedMemoryAreafor Thumb-2shift(int shift) Methods inherited from class com.pnfsoftware.jeb.core.units.code.asm.processor.memory.AbstractEncodedMemoryArea
decodeInt
-
Constructor Details
-
DirectEncodedMemoryArea
protected DirectEncodedMemoryArea(int index, int length)
-
-
Method Details
-
getIndex
public int getIndex() -
getLength
public int getLength() -
get
Build aDirectEncodedMemoryAreafrom index, length. index 0 represent the LSB -
decodeInt
public static int decodeInt(int index, int length, byte[] code) -
getThumb2
Build anDirectEncodedMemoryAreafor Thumb-2- Parameters:
index- index in the 16-bit areazone- 0 for the LSB side, 1 for the MSB
-
decode
public long decode(byte[] code) -
shift
- Specified by:
shiftin interfaceIEncodedMemoryArea- Overrides:
shiftin classAbstractEncodedMemoryArea
-