From 0cd116c860789984d018c00589f12f9de206a43c Mon Sep 17 00:00:00 2001 From: Pavel <68122101+red-prig@users.noreply.github.com> Date: Wed, 13 Nov 2024 16:03:11 +0300 Subject: [PATCH] + --- sys/jit/kern_jit_ctx.pas | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/sys/jit/kern_jit_ctx.pas b/sys/jit/kern_jit_ctx.pas index f05d76ff..75e7a828 100644 --- a/sys/jit/kern_jit_ctx.pas +++ b/sys/jit/kern_jit_ctx.pas @@ -3958,6 +3958,27 @@ begin Exit; end; + if (din.OpCode.Prefix=OPPnone) then + begin + case din.OpCode.Opcode of + OPins , + OPouts, + OPmovs, + OPlods, + OPstos, + OPcmps, + OPscas: + case din.OpCode.Suffix of + OPSx_b:begin Result.mema_size:=1; Exit; end; + OPSx_w:begin Result.mema_size:=2; Exit; end; + OPSx_d:begin Result.mema_size:=4; Exit; end; + OPSx_q:begin Result.mema_size:=8; Exit; end; + else; + end; + else; + end; + end; + Assert(false,'get_instruction_info'); end;