-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcodedis.h
More file actions
53 lines (43 loc) · 1.1 KB
/
codedis.h
File metadata and controls
53 lines (43 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* codedis.h
* cortex_disasm
*
* Created by Sergej Kravcenko on 12/1/10.
* Copyright 2010 Codewaves. All rights reserved.
*
*/
#ifndef CODEDIS_H
#define CODEDIS_H
#include "types.h"
class CFieldSet;
typedef int (*tDecodeFunc)(CFieldSet &cFieldSet, int iT);
typedef struct
{
const char *lpstrPattern;
const char *lpstrFormat;
const char *lpstrExpr;
bool b32bit;
const char *lpstrPattern2;
} tInstructionDef;
typedef struct
{
const char *lpstrName;
const char *lpstrPattern;
const char *lpstrPattern2;
bool b32bit;
int iT;
tDecodeFunc lpfDecode;
} tInstructionInfo;
extern u32 g_uiCurrentAddr;
extern char g_strInstrText[1024];
extern u8 g_bItCond;
extern u8 g_bItMask;
extern u8 g_bCurrentCond;
extern bool g_bShowComments;
extern bool g_bGccCompatible;
extern bool g_bShowLdrLabels;
void StartInstructionChain();
int DecodeInstruction(u32 uiAddr, u16 usInstr, u16 usInstr2);
int FindInstruction(u16 usInstr, u16 usInstr2);
void FormatInstruction(const char *lpstrFormat, CFieldSet *lpcFieldSet, char *lpstrBuffer);
#endif