Rizin
unix-like reverse engineering framework and cli tools
common.h File Reference
#include "disassembler.h"

Go to the source code of this file.

Classes

struct  sh_param_builder_addr_t
 
struct  sh_param_builder_t
 
struct  sh_op_raw_t
 

Macros

#define I   f
 
#define N   f
 
#define D   f
 
#define M   f
 
#define OPCODE_(a, b, c, d)   0x##a##b##c##d
 
#define OPCODE(a, b, c, d)   OPCODE_(a, b, c, d)
 
#define NIB0   0
 
#define NIB1   4
 
#define NIB2   8
 
#define NIB3   12
 
#define ADDR(nib, addrmode)
 
#define ADDRBITS(nib, addrmode, b)
 
#define PARAM(reg, addrmode)
 
#define MOVL   0x1fff
 
#define NOPARAM   ADDR(NIB0, SH_ADDR_INVALID)
 

Typedefs

typedef struct sh_param_builder_t SHParamBuilder
 
typedef struct sh_op_raw_t SHOpRaw
 

Macro Definition Documentation

◆ ADDR

#define ADDR (   nib,
  addrmode 
)
Value:
{ \
{ .addr = { .start = nib, .bits = -1, .mode = addrmode } }, .is_param = false \
}

Definition at line 50 of file common.h.

◆ ADDRBITS

#define ADDRBITS (   nib,
  addrmode,
  b 
)
Value:
{ \
{ .addr = { .start = nib, .bits = b, .mode = addrmode } }, .is_param = false \
}
#define b(i)
Definition: sha256.c:42

Definition at line 56 of file common.h.

◆ D

#define D   f

Definition at line 36 of file common.h.

◆ I

#define I   f

Definition at line 34 of file common.h.

◆ M

#define M   f

Definition at line 37 of file common.h.

◆ MOVL

#define MOVL   0x1fff

Definition at line 70 of file common.h.

◆ N

#define N   f

Definition at line 35 of file common.h.

◆ NIB0

#define NIB0   0

Definition at line 44 of file common.h.

◆ NIB1

#define NIB1   4

Definition at line 45 of file common.h.

◆ NIB2

#define NIB2   8

Definition at line 46 of file common.h.

◆ NIB3

#define NIB3   12

Definition at line 47 of file common.h.

◆ NOPARAM

#define NOPARAM   ADDR(NIB0, SH_ADDR_INVALID)

Definition at line 72 of file common.h.

◆ OPCODE

#define OPCODE (   a,
  b,
  c,
  d 
)    OPCODE_(a, b, c, d)

Definition at line 41 of file common.h.

◆ OPCODE_

#define OPCODE_ (   a,
  b,
  c,
  d 
)    0x##a##b##c##d

Definition at line 40 of file common.h.

◆ PARAM

#define PARAM (   reg,
  addrmode 
)
Value:
{ { .param = { .param = { \
SH_REG_IND_##reg, \
}, \
.mode = addrmode } }, \
.is_param = true }
#define reg(n)

Definition at line 62 of file common.h.

Typedef Documentation

◆ SHOpRaw

typedef struct sh_op_raw_t SHOpRaw

◆ SHParamBuilder