2014-03-23 00:35:45 +00:00
|
|
|
#ifndef CAPSTONE_SYSTEMZ_H
|
|
|
|
#define CAPSTONE_SYSTEMZ_H
|
|
|
|
|
|
|
|
/* Capstone Disassembly Engine */
|
2014-04-28 03:23:14 +00:00
|
|
|
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2014 */
|
2014-03-23 00:35:45 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2014-05-15 13:51:02 +00:00
|
|
|
#include "platform.h"
|
2014-03-23 00:35:45 +00:00
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning(disable:4201)
|
|
|
|
#endif
|
|
|
|
|
2014-03-23 01:15:50 +00:00
|
|
|
//> Enums corresponding to SystemZ condition codes
|
2014-03-23 00:35:45 +00:00
|
|
|
typedef enum sysz_cc {
|
|
|
|
SYSZ_CC_INVALID = 0, // invalid CC (default)
|
|
|
|
|
|
|
|
SYSZ_CC_O,
|
|
|
|
SYSZ_CC_H,
|
|
|
|
SYSZ_CC_NLE,
|
|
|
|
SYSZ_CC_L,
|
|
|
|
SYSZ_CC_NHE,
|
|
|
|
SYSZ_CC_LH,
|
|
|
|
SYSZ_CC_NE,
|
|
|
|
SYSZ_CC_E,
|
|
|
|
SYSZ_CC_NLH,
|
|
|
|
SYSZ_CC_HE,
|
|
|
|
SYSZ_CC_NL,
|
|
|
|
SYSZ_CC_LE,
|
|
|
|
SYSZ_CC_NH,
|
|
|
|
SYSZ_CC_NO,
|
|
|
|
} sysz_cc;
|
|
|
|
|
|
|
|
//> Operand type for instruction's operands
|
|
|
|
typedef enum sysz_op_type {
|
2014-10-31 05:55:18 +00:00
|
|
|
SYSZ_OP_INVALID = 0, // = CS_OP_INVALID (Uninitialized).
|
|
|
|
SYSZ_OP_REG, // = CS_OP_REG (Register operand).
|
|
|
|
SYSZ_OP_IMM, // = CS_OP_IMM (Immediate operand).
|
|
|
|
SYSZ_OP_MEM, // = CS_OP_MEM (Memory operand).
|
2014-10-31 05:08:28 +00:00
|
|
|
SYSZ_OP_ACREG = 64, // Access register operand.
|
2014-03-23 00:35:45 +00:00
|
|
|
} sysz_op_type;
|
|
|
|
|
|
|
|
// Instruction's operand referring to memory
|
|
|
|
// This is associated with SYSZ_OP_MEM operand type above
|
|
|
|
typedef struct sysz_op_mem {
|
|
|
|
uint8_t base; // base register
|
2014-03-24 09:26:57 +00:00
|
|
|
uint8_t index; // index register
|
|
|
|
uint64_t length; // BDLAddr operand
|
2014-03-23 00:35:45 +00:00
|
|
|
int64_t disp; // displacement/offset value
|
|
|
|
} sysz_op_mem;
|
|
|
|
|
|
|
|
// Instruction operand
|
|
|
|
typedef struct cs_sysz_op {
|
|
|
|
sysz_op_type type; // operand type
|
|
|
|
union {
|
|
|
|
unsigned int reg; // register value for REG operand
|
2014-03-23 01:15:50 +00:00
|
|
|
int64_t imm; // immediate value for IMM operand
|
2014-03-23 00:35:45 +00:00
|
|
|
sysz_op_mem mem; // base/disp value for MEM operand
|
|
|
|
};
|
|
|
|
} cs_sysz_op;
|
|
|
|
|
|
|
|
// Instruction structure
|
|
|
|
typedef struct cs_sysz {
|
|
|
|
sysz_cc cc; // Code condition
|
|
|
|
// Number of operands of this instruction,
|
|
|
|
// or 0 when instruction has no operand.
|
|
|
|
uint8_t op_count;
|
2014-03-24 09:26:57 +00:00
|
|
|
cs_sysz_op operands[6]; // operands for this instruction.
|
2014-03-23 00:35:45 +00:00
|
|
|
} cs_sysz;
|
|
|
|
|
|
|
|
//> SystemZ registers
|
|
|
|
typedef enum sysz_reg {
|
|
|
|
SYSZ_REG_INVALID = 0,
|
|
|
|
|
|
|
|
SYSZ_REG_0,
|
|
|
|
SYSZ_REG_1,
|
|
|
|
SYSZ_REG_2,
|
|
|
|
SYSZ_REG_3,
|
|
|
|
SYSZ_REG_4,
|
|
|
|
SYSZ_REG_5,
|
|
|
|
SYSZ_REG_6,
|
|
|
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TMLH,
|
|
|
|
SYSZ_INS_TMLL,
|
|
|
|
SYSZ_INS_TMY,
|
|
|
|
SYSZ_INS_X,
|
|
|
|
SYSZ_INS_XC,
|
|
|
|
SYSZ_INS_XG,
|
|
|
|
SYSZ_INS_XGR,
|
|
|
|
SYSZ_INS_XGRK,
|
|
|
|
SYSZ_INS_XI,
|
|
|
|
SYSZ_INS_XIHF,
|
|
|
|
SYSZ_INS_XILF,
|
|
|
|
SYSZ_INS_XIY,
|
|
|
|
SYSZ_INS_XR,
|
|
|
|
SYSZ_INS_XRK,
|
|
|
|
SYSZ_INS_XY,
|
2014-08-26 04:14:25 +00:00
|
|
|
|
2014-09-29 09:15:25 +00:00
|
|
|
SYSZ_INS_ENDING, // <-- mark the end of the list of instructions
|
2014-03-23 00:35:45 +00:00
|
|
|
} sysz_insn;
|
|
|
|
|
|
|
|
//> Group of SystemZ instructions
|
|
|
|
typedef enum sysz_insn_group {
|
2014-10-31 06:40:45 +00:00
|
|
|
SYSZ_GRP_INVALID = 0, // = CS_GRP_INVALID
|
|
|
|
|
|
|
|
//> Generic groups
|
|
|
|
// all jump instructions (conditional+direct+indirect jumps)
|
|
|
|
SYSZ_GRP_JUMP, // = CS_GRP_JUMP
|
|
|
|
|
|
|
|
//> Architecture-specific groups
|
|
|
|
SYSZ_GRP_DISTINCTOPS = 128,
|
2014-07-08 00:59:27 +00:00
|
|
|
SYSZ_GRP_FPEXTENSION,
|
|
|
|
SYSZ_GRP_HIGHWORD,
|
|
|
|
SYSZ_GRP_INTERLOCKEDACCESS1,
|
|
|
|
SYSZ_GRP_LOADSTOREONCOND,
|
2014-03-23 00:35:45 +00:00
|
|
|
|
2014-09-29 09:15:25 +00:00
|
|
|
SYSZ_GRP_ENDING, // <-- mark the end of the list of groups
|
2014-03-23 00:35:45 +00:00
|
|
|
} sysz_insn_group;
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|