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

Go to the source code of this file.

Classes

struct  instruction
 
struct  directive
 
struct  label
 
struct  state
 

Macros

#define __packed   __attribute__((__packed__))
 
#define MODE_MASK   3
 
#define REG_SHIFT   2
 
#define REG_MASK   3
 
#define OPCODE_SHIFT   4
 
#define OPCODE_MASK   0xF
 
#define OPERAND_SHIFT   8
 
#define INST_NOP   0x0000
 
#define INST_BRK   0x0004
 
#define INST_SLEEP   0x0008
 
#define INST_U   0x0009
 
#define INST_SIF   0x000C
 
#define INST_RTS   0x00E2
 
#define INST_BRXL   0xfe09
 
#define INST_BC   0xff09
 
#define REG_AH   0
 
#define REG_AL   1
 
#define REG_X   2
 
#define REG_Y   3
 
#define DATA_MODE_IMMEDIATE   0
 
#define DATA_MODE_DIRECT   1
 
#define DATA_MODE_INDEXED_X   2
 
#define DATA_MODE_INDEXED_Y   3
 
#define ADDR_MODE_RELATIVE   0
 
#define ADDR_MODE_X_RELATIVE   2
 

Functions

static void xap_decode (struct state *s, struct directive *d)
 

Variables

struct instruction __packed
 

Macro Definition Documentation

◆ __packed

#define __packed   __attribute__((__packed__))

Definition at line 10 of file dis.h.

◆ ADDR_MODE_RELATIVE

#define ADDR_MODE_RELATIVE   0

Definition at line 87 of file dis.h.

◆ ADDR_MODE_X_RELATIVE

#define ADDR_MODE_X_RELATIVE   2

Definition at line 88 of file dis.h.

◆ DATA_MODE_DIRECT

#define DATA_MODE_DIRECT   1

Definition at line 83 of file dis.h.

◆ DATA_MODE_IMMEDIATE

#define DATA_MODE_IMMEDIATE   0

Definition at line 82 of file dis.h.

◆ DATA_MODE_INDEXED_X

#define DATA_MODE_INDEXED_X   2

Definition at line 84 of file dis.h.

◆ DATA_MODE_INDEXED_Y

#define DATA_MODE_INDEXED_Y   3

Definition at line 85 of file dis.h.

◆ INST_BC

#define INST_BC   0xff09

Definition at line 75 of file dis.h.

◆ INST_BRK

#define INST_BRK   0x0004

Definition at line 69 of file dis.h.

◆ INST_BRXL

#define INST_BRXL   0xfe09

Definition at line 74 of file dis.h.

◆ INST_NOP

#define INST_NOP   0x0000

Definition at line 68 of file dis.h.

◆ INST_RTS

#define INST_RTS   0x00E2

Definition at line 73 of file dis.h.

◆ INST_SIF

#define INST_SIF   0x000C

Definition at line 72 of file dis.h.

◆ INST_SLEEP

#define INST_SLEEP   0x0008

Definition at line 70 of file dis.h.

◆ INST_U

#define INST_U   0x0009

Definition at line 71 of file dis.h.

◆ MODE_MASK

#define MODE_MASK   3

Definition at line 61 of file dis.h.

◆ OPCODE_MASK

#define OPCODE_MASK   0xF

Definition at line 65 of file dis.h.

◆ OPCODE_SHIFT

#define OPCODE_SHIFT   4

Definition at line 64 of file dis.h.

◆ OPERAND_SHIFT

#define OPERAND_SHIFT   8

Definition at line 66 of file dis.h.

◆ REG_AH

#define REG_AH   0

Definition at line 77 of file dis.h.

◆ REG_AL

#define REG_AL   1

Definition at line 78 of file dis.h.

◆ REG_MASK

#define REG_MASK   3

Definition at line 63 of file dis.h.

◆ REG_SHIFT

#define REG_SHIFT   2

Definition at line 62 of file dis.h.

◆ REG_X

#define REG_X   2

Definition at line 79 of file dis.h.

◆ REG_Y

#define REG_Y   3

Definition at line 80 of file dis.h.

Function Documentation

◆ xap_decode()

static void xap_decode ( struct state s,
struct directive d 
)
static

Variable Documentation

◆ __packed

struct instruction __packed