library/src/decoders/x86ASM/BP-x86InstDecode.cc
// Determines if a opcode byte is a prefix or not
Determines if a opcode byte is a prefix or not
Determines if a opcode byte is a prefix or not
char * X86_32_IsBytePrefix(unsigned char byte){
	switch(byte){
		case 0xf2:
			return "REPNE";
		case 0xf3:
			return "REP";
		case 0x2e:
			return "CS:";
		case 0x36:
			return "SS:";
		case 0x3e:
			return "DS:";
		case 0x26:
			return "ES:";
		case 0x64:
			return "FS:";
		case 0x65:
			return "GS:";
		case 0x66:
			return "OPSIZE";
		case 0x67:
			return "ADDRSIZE";
		default:
			return NULL;
	}
	return NULL;
}
char * X86_32_IsBytePrefix ( unsigned char byte ) { switch ( byte ) { case 0xf2 : return " " ; case 0xf3 : return " " ; case 0x2e : return " " ; case 0x36 : return " " ; case 0x3e : return " " ; case 0x26 : return " " ; case 0x64 : return " " ; case 0x65 : return " " ; case 0x66 : return " " ; case 0x67 : return " " ; default : return NULL ; } return NULL ; }
Determines if a opcode byte is a prefix or not
Determines if a opcode byte is a prefix or not
// Operand Size operand prefix // Address Size Override Pefix