library/src/decoders/x86ASM/BP-x86OperandAnalysis.cc
// determines if an operand is a memory only operand
determines if an operand is a memory only operand
determines if an operand is a memory only operand
size_t X86_32_IsOperandMemOnly(size_t operand){
	switch(operand){
			case IA_M2BYTE:
				return true;
			case IA_M14_28BYTE:
				return true;
			case IA_M512BYTE:
				return true;
			case IA_M80:
				return true;
			case IA_M80BCD:
				return true;
			case IA_M94_108BYTE:
				return true;
			case IA_MEM:
				return true;
			case IA_M16_16:
				return true;
			case IA_M16_32:
				return true;
			case IA_M16_64:
				return true;
			case IA_M:
				return true;
			case IA_M8:
				return true;
			case IA_M16:
				return true;
			case IA_M32:
				return true;
			case IA_M64:
				return true;
			case IA_M128:
				return true;
			case IA_M16_AND_32:
				return true;
			case IA_M16_AND_16:
				return true;
			case IA_M32_AND_32:
				return true;
			case IA_M16_AND_64:
				return true;
			case IA_M32FP:
				return true;
			case IA_M64FP:
				return true;
			case IA_M80FP:
				return true;
			case IA_M16INT:
				return true;
			case IA_M32INT:
				return true;
			case IA_M64INT:
				return true;
			default:
					break;
		}
	return false;
}
size_t X86_32_IsOperandMemOnly ( size_t operand ) { switch ( operand ) { case IA_M2BYTE : return true ; case IA_M14_28BYTE : return true ; case IA_M512BYTE : return true ; case IA_M80 : return true ; case IA_M80BCD : return true ; case IA_M94_108BYTE : return true ; case IA_MEM : return true ; case IA_M16_16 : return true ; case IA_M16_32 : return true ; case IA_M16_64 : return true ; case IA_M : return true ; case IA_M8 : return true ; case IA_M16 : return true ; case IA_M32 : return true ; case IA_M64 : return true ; case IA_M128 : return true ; case IA_M16_AND_32 : return true ; case IA_M16_AND_16 : return true ; case IA_M32_AND_32 : return true ; case IA_M16_AND_64 : return true ; case IA_M32FP : return true ; case IA_M64FP : return true ; case IA_M80FP : return true ; case IA_M16INT : return true ; case IA_M32INT : return true ; case IA_M64INT : return true ; default : break ; } return false ; }
determines if an operand is a memory only operand
determines if an operand is a memory only operand
// Anomolies first: Not found in the instruction information // 2 byte memory operand // anomolies // ptr operands // (m) Operand in memory. // (m16&32) Memory operand consistin of data items pairs. // (m32fp) Scaled precision floating point operands in memory. // (m16int) Integer operand in memory. Used as operands for x87.