Rizin
unix-like reverse engineering framework and cli tools
propeller_disas.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2014 Fedor Sakharov <fedor.sakharov@gmail.com>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef PROPELLER_DISAS_H
5 #define PROPELLER_DISAS_H
6 
7 #define PROP_INSTR_MAXLEN 32
8 
10  PROP_ABS = 0x2A,
11  PROP_ABSNEG = 0x2B,
12  PROP_ADD = 0x20,
13  PROP_ADDABS = 0x22,
14  PROP_ADDS = 0x34,
15  PROP_ADDSX = 0x36,
16  PROP_ADDX = 0x32,
17  PROP_AND = 0x18,
18  PROP_ANDN = 0x19,
19  PROP_CALL = 0x17,
20  PROP_CMP = 0x21,
21  PROP_CMPS = 0x30,
22  PROP_CMPSUB = 0x38,
23  PROP_CMPSX = 0x31,
24  PROP_CMPX = 0x33,
25  PROP_DJNZ = 0x39,
26  PROP_HUBOP = 0x03,
27  PROP_JMP = 0x17,
28  PROP_JMPRET = 0x17,
29  PROP_MAX = 0x13,
30  PROP_MAXS = 0x11,
31  PROP_MIN = 0x12,
32  PROP_MINS = 0x10,
33  PROP_MOV = 0x28,
34  PROP_MOVD = 0x15,
35  PROP_MOVI = 0x16,
36  PROP_MOVS = 0x14,
37  PROP_MUXC = 0x1c,
38  PROP_MUXNC = 0x1d,
39  PROP_MUXNZ = 0x1f,
40  PROP_MUXZ = 0x1e,
41  PROP_NEG = 0x29,
42  PROP_NEGC = 0x2c,
43  PROP_NEGNC = 0x2d,
44  PROP_NEGNZ = 0x2f,
45  PROP_NEGZ = 0x2e,
46  PROP_NOP = 0x00,
47  PROP_OR = 0x1a,
48  PROP_RCL = 0x0d,
49  PROP_RCR = 0x0c,
50  PROP_RDBYTE = 0x00,
51  PROP_RDLONG = 0x02,
52  PROP_RDWORD = 0x01,
53  PROP_RET = 0x17,
54  PROP_REV = 0x0f,
55  PROP_ROL = 0x09,
56  PROP_ROR = 0x08,
57  PROP_SAR = 0x0e,
58  PROP_SHL = 0x0b,
59  PROP_SHR = 0x0a,
60  PROP_SUB = 0x21,
61  PROP_SUBABS = 0x23,
62  PROP_SUBS = 0x35,
63  PROP_SUBSX = 0x37,
64  PROP_SUBX = 0x33,
65  PROP_SUMC = 0x24,
66  PROP_SUMNC = 0x25,
67  PROP_SUMNZ = 0x27,
68  PROP_SUMZ = 0x26,
69  PROP_TEST = 0x18,
70  PROP_TESTN = 0x19,
71  PROP_TJNZ = 0x3a,
72  PROP_TJZ = 0x3b,
73  PROP_WAITCNT = 0x3e,
74  PROP_WAITPEQ = 0x3c,
75  PROP_WAITPNE = 0x3d,
76  PROP_WAITVID = 0x3f,
77  PROP_WRBYTE = 0x00,
78  PROP_WRLONG = 0x02,
79  PROP_WRWORD = 0x01,
80  PROP_XOR = 0x1b,
81 };
82 
84  PROP_CLKSET = 0x18,
85  PROP_COGID = 0x19,
86  PROP_COGINIT = 0x1a,
87  PROP_COGSTOP = 0x1b,
88  PROP_LOCKCLR = 0x1f,
89  PROP_LOCKNEW = 0x1c,
90  PROP_LOCKRET = 0x1d,
91  PROP_LOCKSET = 0x1e,
92 };
93 
97  PROP_IF_E = 0xa,
98  PROP_IF_NE = 0x5,
99  PROP_IF_A = 0x1,
100  PROP_IF_B = 0xc,
101  PROP_IF_AE = 0x3,
102  PROP_IF_BE = 0xe,
111 };
112 
114  unsigned type;
119  char prefix[16];
122 };
123 
124 int propeller_decode_command(const ut8 *instr, struct propeller_cmd *cmd);
125 #endif /* PROPELLER_DISAS_H */
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags cmd
Definition: sflib.h:79
uint16_t ut16
uint8_t ut8
Definition: lh5801.h:11
propeller_opcodes
@ PROP_WAITPEQ
@ PROP_MOVS
@ PROP_MOVD
@ PROP_SUMNZ
@ PROP_MIN
@ PROP_CALL
@ PROP_RDWORD
@ PROP_CMPSUB
@ PROP_ANDN
@ PROP_RCR
@ PROP_ADDX
@ PROP_SUMNC
@ PROP_REV
@ PROP_SUBX
@ PROP_WRWORD
@ PROP_XOR
@ PROP_NEG
@ PROP_MOVI
@ PROP_NEGZ
@ PROP_CMPX
@ PROP_SHL
@ PROP_RDBYTE
@ PROP_ADDSX
@ PROP_ABSNEG
@ PROP_TJZ
@ PROP_TJNZ
@ PROP_SHR
@ PROP_RCL
@ PROP_NEGC
@ PROP_NEGNC
@ PROP_MUXC
@ PROP_NEGNZ
@ PROP_SUBABS
@ PROP_SAR
@ PROP_CMP
@ PROP_MUXZ
@ PROP_ROR
@ PROP_JMPRET
@ PROP_TEST
@ PROP_MAXS
@ PROP_AND
@ PROP_MINS
@ PROP_WAITPNE
@ PROP_RDLONG
@ PROP_ADDABS
@ PROP_ADDS
@ PROP_MOV
@ PROP_WAITCNT
@ PROP_NOP
@ PROP_MUXNZ
@ PROP_WRBYTE
@ PROP_MUXNC
@ PROP_SUMZ
@ PROP_WRLONG
@ PROP_WAITVID
@ PROP_HUBOP
@ PROP_TESTN
@ PROP_ADD
@ PROP_SUMC
@ PROP_SUBS
@ PROP_ROL
@ PROP_OR
@ PROP_MAX
@ PROP_JMP
@ PROP_DJNZ
@ PROP_CMPS
@ PROP_SUB
@ PROP_SUBSX
@ PROP_RET
@ PROP_CMPSX
@ PROP_ABS
propeller_conditions
@ PROP_IF_BE
@ PROP_IF_B
@ PROP_IF_C_NE_Z
@ PROP_IF_NZ_OR_C
@ PROP_IF_ALWAYS
@ PROP_IF_E
@ PROP_IF_AE
@ PROP_IF_C_AND_Z
@ PROP_IF_C_AND_NZ
@ PROP_IF_Z_OR_NC
@ PROP_IF_NC_AND_Z
@ PROP_IF_C_EQ_Z
@ PROP_IF_NEVER
@ PROP_IF_NE
@ PROP_IF_NZ_OR_NC
@ PROP_IF_A
#define PROP_INSTR_MAXLEN
int propeller_decode_command(const ut8 *instr, struct propeller_cmd *cmd)
propeller_ext_opcodes
@ PROP_LOCKNEW
@ PROP_CLKSET
@ PROP_COGSTOP
@ PROP_LOCKRET
@ PROP_LOCKSET
@ PROP_COGINIT
@ PROP_LOCKCLR
@ PROP_COGID
char instr[PROP_INSTR_MAXLEN]