| 61 | } |
| 62 | |
| 63 | bool x86PopHandler(Instruction* instruction) |
| 64 | { |
| 65 | std::vector<ZydisDecodedOperand> operandInfo = instruction->getOperandInfo(); |
| 66 | |
| 67 | switch (operandInfo[0].type) |
| 68 | { |
| 69 | case ZYDIS_OPERAND_TYPE_REGISTER: |
| 70 | { |
| 71 | emitPopRegister(instruction, operandInfo[0].reg.value, operandInfo[0].size); |
| 72 | return 1; |
| 73 | } |
| 74 | case ZYDIS_OPERAND_TYPE_IMMEDIATE: return 0; |
| 75 | case ZYDIS_OPERAND_TYPE_MEMORY: return 0; |
| 76 | case ZYDIS_OPERAND_TYPE_POINTER: return 0; |
| 77 | case ZYDIS_OPERAND_TYPE_UNUSED: return 0; |
| 78 | } |
| 79 | |
| 80 | return 0; |
| 81 | } |
| 82 | |
| 83 | bool x86MovHandler(Instruction* instruction) |
| 84 | { |
no test coverage detected