reactos/rosapps/devutils/cputointel/any_op.h
Magnus Olsen 7c96cb069a adding blr opcode (can not found it in the ibm or motorala doc, the primary opcode refens to addi).
now we can disambler two opcode the li and blr, add blr to my own asm langues. 

svn path=/trunk/; revision=25448
2007-01-14 12:10:53 +00:00

28 lines
854 B
C

#define OP_ANY_mov 0x00000000
#define OP_ANY_ret 0x00000001
typedef struct _BrainAnalys
{
CPU_UNINT op; /* one tranlator for any cpu type set our own opcode */
CPU_INT type; /* 0 = source are memmory, 1 source are register */
/* 2 = dest are memmory, 4 dest are register */
/* 8 = source are imm */
CPU_INT src_size; /* who many bits are src not vaild for reg*/
CPU_INT dst_size; /* who many bits are dst not vaild for reg*/
CPU_UNINT64 src;
CPU_UNINT64 dst;
CPU_UNINT memAdr; /* where are we in the current memory pos + baseaddress */
/* try translate the Adress to a name */
CPU_BYTE* ptr_next; /* hook next one */
CPU_BYTE* ptr_prev; /* hook previus one */
} MYBrainAnalys, *PMYBrainAnalys;
extern PMYBrainAnalys pMyBrainAnalys;