Rizin
unix-like reverse engineering framework and cli tools
opcode.h File Reference

Go to the source code of this file.

Classes

struct  dalvik_opcodes_t
 

Enumerations

enum  fmt_inst {
  fmt00 = 0 , fmtop , fmtopvAvB , fmtopvAcB ,
  fmtopvAA , fmtoppAA , fmtopAAtBBBB , fmtoppAAAA ,
  fmtopvAAvBBBB , fmtopvAApBBBB , fmtopvAAcBBBB , fmtopvAAcBBBB0000 ,
  fmtopvAAtBBBB , fmtopvAAvBBvCC , fmtopvAAvBBcCC , fmtopvAvBpCCCC ,
  fmtopvAvBcCCCC , fmtopvAvBtCCCC , fmtoptopvAvBoCCCC , fmtopvAAAAvBBBB ,
  fmtoppAAAAAAAA , fmtopvAApBBBBBBBB , fmtopvAAcBBBBBBBB , fmtopvAAtBBBBBBBB ,
  fmtopvXtBBBB , fmtoptinvokeVS , fmtoptinvokeI , fmtopvCCCCmBBBB ,
  fmtoptinvokeVSR , fmtoptinvokeIR , fmtoptinlineI , fmtoptinlineIR ,
  fmtopvAAcBBBBBBBBBBBBBBBB , fmtop45CC , fmtop4RCC , fmtoptinvokcustom
}
 

Variables

static const struct dalvik_opcodes_t dalvik_opcodes [256]
 

Enumeration Type Documentation

◆ fmt_inst

enum fmt_inst
Enumerator
fmt00 
fmtop 
fmtopvAvB 
fmtopvAcB 
fmtopvAA 
fmtoppAA 
fmtopAAtBBBB 
fmtoppAAAA 
fmtopvAAvBBBB 
fmtopvAApBBBB 
fmtopvAAcBBBB 
fmtopvAAcBBBB0000 
fmtopvAAtBBBB 
fmtopvAAvBBvCC 
fmtopvAAvBBcCC 
fmtopvAvBpCCCC 
fmtopvAvBcCCCC 
fmtopvAvBtCCCC 
fmtoptopvAvBoCCCC 
fmtopvAAAAvBBBB 
fmtoppAAAAAAAA 
fmtopvAApBBBBBBBB 
fmtopvAAcBBBBBBBB 
fmtopvAAtBBBBBBBB 
fmtopvXtBBBB 
fmtoptinvokeVS 
fmtoptinvokeI 
fmtopvCCCCmBBBB 
fmtoptinvokeVSR 
fmtoptinvokeIR 
fmtoptinlineI 
fmtoptinlineIR 
fmtopvAAcBBBBBBBBBBBBBBBB 
fmtop45CC 
fmtop4RCC 
fmtoptinvokcustom 

Definition at line 7 of file opcode.h.

7  {
8  fmt00 = 0, // None
9  fmtop, // op
10  fmtopvAvB, // op vA, vB
11  fmtopvAcB, // op vA, #+B
12  fmtopvAA, // op vAA
13  fmtoppAA, // op +AA
14  fmtopAAtBBBB, // op AA, thing@BBBB
15  fmtoppAAAA, // op +AAAA
16  fmtopvAAvBBBB, // op vAA, vBBBB
17  fmtopvAApBBBB, // op vAA, +BBBB
18  fmtopvAAcBBBB, // op vAA, #+BBBB
19  fmtopvAAcBBBB0000, // op vAA, #+BBBB00000[00000000]
20  fmtopvAAtBBBB, // op vAA, thing@BBBB
21  fmtopvAAvBBvCC, // op vAA, vBB, vCC
22  fmtopvAAvBBcCC, // op vAA, vBB, #+CC
23  fmtopvAvBpCCCC, // op vA, vB, +CCCC
24  fmtopvAvBcCCCC, // op vA, vB, #+CCCC
25  fmtopvAvBtCCCC, // op vA, vB, thing@CCCC
26  fmtoptopvAvBoCCCC, // [opt] op vA, vB, field offset CCCC
27  fmtopvAAAAvBBBB, // op vAAAA, vBBBB
28  fmtoppAAAAAAAA, // op +AAAAAAAA
29  fmtopvAApBBBBBBBB, // op vAA, +BBBBBBBB
30  fmtopvAAcBBBBBBBB, // op vAA, #+BBBBBBBB
31  fmtopvAAtBBBBBBBB, // op vAA, thing@BBBBBBBB
32  fmtopvXtBBBB, // op {vC, vD, vE, vF, vG}, thing@BBBB (B: count, A: vG)
33  fmtoptinvokeVS, // [opt] invoke-virtual+super
34  fmtoptinvokeI, // [opt] invoke-interface
35  fmtopvCCCCmBBBB, // op {vCCCC .. v(CCCC+AA-1)}, meth@BBBB
36  fmtoptinvokeVSR, // [opt] invoke-virtual+super/range
37  fmtoptinvokeIR, // [opt] invoke-interface/range
38  fmtoptinlineI, // [opt] inline invoke
39  fmtoptinlineIR, // [opt] inline invoke/range
40  fmtopvAAcBBBBBBBBBBBBBBBB, // op vAA, #+BBBBBBBBBBBBBBBB
41  fmtop45CC,
42  fmtop4RCC,
44 };
@ fmtopvAAtBBBBBBBB
Definition: opcode.h:31
@ fmtopvAAcBBBB
Definition: opcode.h:18
@ fmtopvAAvBBBB
Definition: opcode.h:16
@ fmtoptinvokeIR
Definition: opcode.h:37
@ fmtopvAvBpCCCC
Definition: opcode.h:23
@ fmtoptinvokeVS
Definition: opcode.h:33
@ fmtop4RCC
Definition: opcode.h:42
@ fmtopvAAvBBvCC
Definition: opcode.h:21
@ fmtopAAtBBBB
Definition: opcode.h:14
@ fmtoptinvokcustom
Definition: opcode.h:43
@ fmtopvXtBBBB
Definition: opcode.h:32
@ fmt00
Definition: opcode.h:8
@ fmtopvAAtBBBB
Definition: opcode.h:20
@ fmtopvCCCCmBBBB
Definition: opcode.h:35
@ fmtopvAAcBBBBBBBB
Definition: opcode.h:30
@ fmtopvAApBBBB
Definition: opcode.h:17
@ fmtoptinvokeVSR
Definition: opcode.h:36
@ fmtopvAvBcCCCC
Definition: opcode.h:24
@ fmtopvAAAAvBBBB
Definition: opcode.h:27
@ fmtoppAA
Definition: opcode.h:13
@ fmtoppAAAA
Definition: opcode.h:15
@ fmtoptinlineI
Definition: opcode.h:38
@ fmtopvAApBBBBBBBB
Definition: opcode.h:29
@ fmtoptinlineIR
Definition: opcode.h:39
@ fmtopvAA
Definition: opcode.h:12
@ fmtopvAvB
Definition: opcode.h:10
@ fmtopvAvBtCCCC
Definition: opcode.h:25
@ fmtoptinvokeI
Definition: opcode.h:34
@ fmtopvAAvBBcCC
Definition: opcode.h:22
@ fmtop
Definition: opcode.h:9
@ fmtopvAAcBBBB0000
Definition: opcode.h:19
@ fmtopvAcB
Definition: opcode.h:11
@ fmtopvAAcBBBBBBBBBBBBBBBB
Definition: opcode.h:40
@ fmtop45CC
Definition: opcode.h:41
@ fmtoptopvAvBoCCCC
Definition: opcode.h:26
@ fmtoppAAAAAAAA
Definition: opcode.h:28

Variable Documentation

◆ dalvik_opcodes

const struct dalvik_opcodes_t dalvik_opcodes[256]
static

Definition at line 1 of file opcode.h.

Referenced by dalvik_assemble(), dalvik_disassemble(), and dalvik_op().