Rizin
unix-like reverse engineering framework and cli tools
snes_op_table.h File Reference
#include <rz_types.h>

Go to the source code of this file.

Classes

struct  snes_op_t
 

Enumerations

enum  {
  SNES_OP_8BIT = 1 , SNES_OP_16BIT , SNES_OP_24BIT , SNES_OP_32BIT ,
  SNES_OP_IMM_M , SNES_OP_IMM_X
}
 

Functions

static int snes_op_get_size (int M_flag, int X_flag, snes_op_t *op)
 

Variables

static snes_op_t snes_op []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SNES_OP_8BIT 
SNES_OP_16BIT 
SNES_OP_24BIT 
SNES_OP_32BIT 
SNES_OP_IMM_M 
SNES_OP_IMM_X 

Definition at line 9 of file snes_op_table.h.

9  {
10  SNES_OP_8BIT = 1,
14  SNES_OP_IMM_M, // 8- or 16-bit immediate depending on M flag
15  SNES_OP_IMM_X // 8- or 16-bit immediate depending on X flag
16 };
@ SNES_OP_IMM_M
Definition: snes_op_table.h:14
@ SNES_OP_24BIT
Definition: snes_op_table.h:12
@ SNES_OP_IMM_X
Definition: snes_op_table.h:15
@ SNES_OP_32BIT
Definition: snes_op_table.h:13
@ SNES_OP_16BIT
Definition: snes_op_table.h:11
@ SNES_OP_8BIT
Definition: snes_op_table.h:10

Function Documentation

◆ snes_op_get_size()

static int snes_op_get_size ( int  M_flag,
int  X_flag,
snes_op_t op 
)
static

Definition at line 24 of file snes_op_table.h.

24  {
25 
26  switch (op->len) {
27  case SNES_OP_IMM_M: return M_flag ? SNES_OP_16BIT : SNES_OP_24BIT;
28  case SNES_OP_IMM_X: return X_flag ? SNES_OP_16BIT : SNES_OP_24BIT;
29  default: return op->len;
30  }
31 }
Definition: dis.c:32

References SNES_OP_16BIT, SNES_OP_24BIT, SNES_OP_IMM_M, and SNES_OP_IMM_X.

Referenced by _6502_op(), snes_anop(), and snesDisass().

Variable Documentation

◆ snes_op

snes_op_t snes_op[]
static

Definition at line 33 of file snes_op_table.h.

Referenced by _6502_op(), snes_anop(), and snesDisass().