From 29cf96c7038fbe9337877c611e190bd976d350d3 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 3 Jan 2021 19:39:28 -0500 Subject: [PATCH] Adds decoding of disp16 RETs. --- Processors/Decoders/x86/x86.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Processors/Decoders/x86/x86.cpp b/Processors/Decoders/x86/x86.cpp index 9eb37f99b..d4e08bfea 100644 --- a/Processors/Decoders/x86/x86.cpp +++ b/Processors/Decoders/x86/x86.cpp @@ -182,7 +182,9 @@ Instruction Decoder::decode(uint8_t *source, size_t length) { MapRegData(0xbc, MOV, true, SP); MapRegData(0xbd, MOV, true, BP); MapRegData(0xbe, MOV, true, SI); MapRegData(0xbf, MOV, true, DI); + MapPartial(0xc2, RETIntra, true, Disp, AwaitingOperands); MapComplete(0xc3, RETIntra, None, None); + MapPartial(0xca, RETInter, true, Disp, AwaitingOperands); MapComplete(0xcb, RETInter, None, None); // Other prefix bytes.