Lines Matching refs:ubyte_at
61 bool is_nop() { return ubyte_at(0) == nop_instruction_code; }
75 u_char ubyte_at(int offset) const { return *(u_char*) addr_at(offset); }
534 inline bool NativeInstruction::is_call() { return ubyte_at(0) == NativeCall::instruction_code; }
535 inline bool NativeInstruction::is_return() { return ubyte_at(0) == NativeReturn::instruction_code ||
536 ubyte_at(0) == NativeReturnX::instruction_code; }
537 inline bool NativeInstruction::is_jump() { return ubyte_at(0) == NativeJump::instruction_code ||
538 ubyte_at(0) == 0xEB; /* short jump */ }
540 (ubyte_at(0) & 0xF0) == 0x70; /* short jump */ }
545 if (((ubyte_at(0) & NativeTstRegMem::instruction_rex_prefix_mask) == NativeTstRegMem::instruction_rex_prefix &&
546 ubyte_at(1) == NativeTstRegMem::instruction_code_memXregl &&
547 (ubyte_at(2) & NativeTstRegMem::modrm_mask) == NativeTstRegMem::modrm_reg) ||
548 ubyte_at(0) == NativeTstRegMem::instruction_code_memXregl &&
549 (ubyte_at(1) & NativeTstRegMem::modrm_mask) == NativeTstRegMem::modrm_reg) {
555 if (ubyte_at(0) == NativeTstRegMem::instruction_code_memXregl &&
556 ubyte_at(1) == 0x05) { // 00 rax 101
564 return ( ubyte_at(0) == NativeMovRegMem::instruction_code_mem2reg ||
565 ubyte_at(0) == NativeTstRegMem::instruction_code_memXregl ) &&
566 (ubyte_at(1)&0xC7) == 0x05 && /* Mod R/M == disp32 */
573 return ((ubyte_at(0) == Assembler::REX_W || ubyte_at(0) == Assembler::REX_WB) &&
574 (ubyte_at(1) & (0xff ^ NativeMovConstReg::register_mask)) == 0xB8);