9 #include "../asm/arch/xap/dis.c"
12 int off =
d->d_operand;
13 int lame =
off & 0x80;
17 }
else if (
d->d_prefix == 1) {
18 off = (short)(
off & 0xffff);
34 return d->d_off +
off;
47 if (!analysis || !
op) {
58 memcpy(&
d.d_inst,
s.s_buf,
sizeof(
d.d_inst));
82 switch (
in->in_opcode) {
119 switch (
in->in_reg) {
151 switch (
in->in_reg) {
193 switch (
in->in_reg) {
215 .desc =
"XAP code analysis plugin",
222 #ifndef RZ_PLUGIN_INCORE
static int label_off(struct directive *d)
RZ_API RzLibStruct rizin_plugin
RzAnalysisPlugin rz_analysis_plugin_xap
static int xap_op(RzAnalysis *analysis, RzAnalysisOp *op, ut64 addr, const ut8 *bytes, int len, RzAnalysisOpMask mask)
static ut16 i2ut16(struct instruction *in)
const lzma_allocator const uint8_t * in
return memset(p, 0, total)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
@ RZ_ANALYSIS_OP_TYPE_CMP
@ RZ_ANALYSIS_OP_TYPE_SUB
@ RZ_ANALYSIS_OP_TYPE_UNK
@ RZ_ANALYSIS_OP_TYPE_MUL
@ RZ_ANALYSIS_OP_TYPE_JMP
@ RZ_ANALYSIS_OP_TYPE_AND
@ RZ_ANALYSIS_OP_TYPE_TRAP
@ RZ_ANALYSIS_OP_TYPE_CALL
@ RZ_ANALYSIS_OP_TYPE_ADD
@ RZ_ANALYSIS_OP_TYPE_PUSH
@ RZ_ANALYSIS_OP_TYPE_POP
@ RZ_ANALYSIS_OP_TYPE_CJMP
@ RZ_ANALYSIS_OP_TYPE_DIV
@ RZ_ANALYSIS_OP_TYPE_NOP
@ RZ_ANALYSIS_OP_TYPE_XOR
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static void xap_decode(struct state *s, struct directive *d)
static int get_operand(struct state *s, struct directive *d)