Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

x86instr.cpp File Reference

#include "global.h"
#include <cstring>
#include "x86istr.h"
#include "x86instr.h"

Go to the source code of this file.

Defines

#define REG_INFO(reg)   (*RegistryInfo::GetInfo(reg))
#define COMPLETE(reg)   (REG_INFO(reg).completeReg)
#define INTERSECT(reg_a, reg_b)   ( REG_INFO(reg_a).completeReg == REG_INFO(reg_b).completeReg && (REG_INFO(reg_a).partialMask&REG_INFO(reg_b).partialMask)!=0 )
#define USE_TYPE(u)   static_cast<enum Instruction::UseType>(u)

Enumerations

enum  Operations {
  Assign, Negate, Complement, Zero,
  Xor, Sub, Add, And,
  Or
}
enum  FlagCombine {
  UsuallyFlag, FlagCarry, FlagZero, FlagParity,
  FlagNone
}

Functions

void Operation1 (Operations op, const Param &param, FlagCombine flag)
void Operation2 (Operations op, const Param *dst, const Param &p1, FlagCombine flag)
void Operation3 (Operations op, const Param *dst, const Param &p1, const Param &p2, FlagCombine flag)
void SetFlag (FlagCombine flag, FlagCombine mask)


Define Documentation

#define COMPLETE reg       (REG_INFO(reg).completeReg)
 

Definition at line 35 of file x86instr.cpp.

Referenced by Instruction::GetUseType().

#define INTERSECT reg_a,
reg_b       ( REG_INFO(reg_a).completeReg == REG_INFO(reg_b).completeReg && (REG_INFO(reg_a).partialMask&REG_INFO(reg_b).partialMask)!=0 )
 

Definition at line 36 of file x86instr.cpp.

Referenced by Instruction::GetUseType().

#define REG_INFO reg       (*RegistryInfo::GetInfo(reg))
 

Definition at line 34 of file x86instr.cpp.

Referenced by Instruction::GetUseType().

#define USE_TYPE      static_cast<enum Instruction::UseType>(u)
 

Definition at line 37 of file x86instr.cpp.

Referenced by Instruction::GetUseType().


Enumeration Type Documentation

enum FlagCombine
 

Enumeration values:
UsuallyFlag 
FlagCarry 
FlagZero 
FlagParity 
FlagNone 

Definition at line 519 of file x86instr.cpp.

Referenced by Operation1(), Operation2(), Operation3(), SetFlag(), and Instruction::WriteRegUsage().

enum Operations
 

Enumeration values:
Assign 
Negate 
Complement 
Zero 
Xor 
Sub 
Add 
And 
Or 

Definition at line 518 of file x86instr.cpp.

Referenced by Operation1(), Operation2(), and Operation3().


Function Documentation

void Operation1 Operations    op,
const Param   param,
FlagCombine    flag
 

Definition at line 520 of file x86instr.cpp.

References FlagCombine, and Operations.

Referenced by Instruction::WriteRegUsage().

00521 {}

void Operation2 Operations    op,
const Param   dst,
const Param   p1,
FlagCombine    flag
 

Definition at line 522 of file x86instr.cpp.

References FlagCombine, and Operations.

Referenced by Instruction::WriteRegUsage().

00523 {}

void Operation3 Operations    op,
const Param   dst,
const Param   p1,
const Param   p2,
FlagCombine    flag
 

Definition at line 524 of file x86instr.cpp.

References FlagCombine, and Operations.

Referenced by Instruction::WriteRegUsage().

00525 {}

void SetFlag FlagCombine    flag,
FlagCombine    mask
 

Definition at line 526 of file x86instr.cpp.

References FlagCombine.

Referenced by Instruction::WriteRegUsage().

00527 {}


Generated on Mon Jan 13 22:20:35 2003 for perdr by doxygen1.2.15