mirror of https://github.com/x64dbg/zydis
				
				
				
			Implemented decoding of PTR and AGEN operands
This commit is contained in:
		
							parent
							
								
									28a8178559
								
							
						
					
					
						commit
						1d023c2997
					
				| 
						 | 
					@ -1615,8 +1615,12 @@ static ZydisStatus ZydisDecodeOperands(ZydisDecoderContext* context, ZydisInstru
 | 
				
			||||||
            ZYDIS_CHECK(ZydisDecodeOperandMemory(context, info, &info->operands[i]));
 | 
					            ZYDIS_CHECK(ZydisDecodeOperandMemory(context, info, &info->operands[i]));
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
        case ZYDIS_SEMANTIC_OPTYPE_PTR:
 | 
					        case ZYDIS_SEMANTIC_OPTYPE_PTR:
 | 
				
			||||||
 | 
					            info->operands[i].type = ZYDIS_OPERAND_TYPE_MEMORY;
 | 
				
			||||||
 | 
					            info->operands[i].mem.disp.hasDisplacement = ZYDIS_TRUE;
 | 
				
			||||||
 | 
					            info->operands[i].mem.disp.value.sqword = info->details.disp.value.sqword;
 | 
				
			||||||
            break; // TODO: implement
 | 
					            break; // TODO: implement
 | 
				
			||||||
        case ZYDIS_SEMANTIC_OPTYPE_AGEN:
 | 
					        case ZYDIS_SEMANTIC_OPTYPE_AGEN:
 | 
				
			||||||
 | 
					            ZYDIS_CHECK(ZydisDecodeOperandMemory(context, info, &info->operands[i]));
 | 
				
			||||||
            break; // TODO: implement
 | 
					            break; // TODO: implement
 | 
				
			||||||
        case ZYDIS_SEMANTIC_OPTYPE_MOFFS:
 | 
					        case ZYDIS_SEMANTIC_OPTYPE_MOFFS:
 | 
				
			||||||
            ZYDIS_ASSERT(info->details.disp.dataSize);
 | 
					            ZYDIS_ASSERT(info->details.disp.dataSize);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue