Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

x86dis.cc File Reference

#include "stream.h"
#include "store.h"
#include "tools.h"
#include "vxd.h"
#include "x86dis.h"
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Defines

#define mkmod(modrm)   (((modrm)>>6)&3)
#define mkreg(modrm)   (((modrm)>>3)&7)
#define mkrm(modrm)   ((modrm)&7)
#define mkscale(modrm)   (((modrm)>>6)&3)
#define mkindex(modrm)   (((modrm)>>3)&7)
#define mkbase(modrm)   ((modrm)&7)

Variables

int modrm16_1 [8]
int modrm16_2 [8]
int sibbase [8]
int sibindex [8]
int sibscale [4] = {1, 2, 4, 8}


Define Documentation

#define mkbase modrm   )     ((modrm)&7)
 

Definition at line 36 of file x86dis.cc.

Referenced by x86dis::decode_sib().

#define mkindex modrm   )     (((modrm)>>3)&7)
 

Definition at line 35 of file x86dis.cc.

Referenced by x86dis::decode_sib().

#define mkmod modrm   )     (((modrm)>>6)&3)
 

Definition at line 30 of file x86dis.cc.

Referenced by x86dis::decode_insn(), and x86dis::decode_modrm().

#define mkreg modrm   )     (((modrm)>>3)&7)
 

Definition at line 31 of file x86dis.cc.

Referenced by x86dis::decode_insn(), and x86dis::decode_op().

#define mkrm modrm   )     ((modrm)&7)
 

Definition at line 32 of file x86dis.cc.

Referenced by x86dis::decode_insn(), x86dis::decode_modrm(), and x86dis::decode_op().

#define mkscale modrm   )     (((modrm)>>6)&3)
 

Definition at line 34 of file x86dis.cc.

Referenced by x86dis::decode_sib().


Variable Documentation

int modrm16_1[8]
 

Initial value:

Definition at line 38 of file x86dis.cc.

Referenced by x86dis::decode_modrm().

int modrm16_2[8]
 

Initial value:

Definition at line 40 of file x86dis.cc.

Referenced by x86dis::decode_modrm().

int sibbase[8]
 

Initial value:

Definition at line 43 of file x86dis.cc.

Referenced by x86dis::decode_sib().

int sibindex[8]
 

Initial value:

Definition at line 46 of file x86dis.cc.

Referenced by x86dis::decode_sib().

int sibscale[4] = {1, 2, 4, 8}
 

Definition at line 49 of file x86dis.cc.

Referenced by x86dis::decode_sib().


Generated on Fri May 7 21:15:52 2004 by doxygen 1.3.5