mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-05-19 03:41:18 +03:00
Fixed MUL instruction tests with SIB byte encoding. When using SIB byte with Base=101 (EBP) and Mod=00, it requires a 32-bit displacement. Replaced incorrect encodings with proper ones for [eax] and direct memory addressing.
This commit is contained in:
parent
72ad1c0d90
commit
be2dfc3dc5
@ -19,6 +19,17 @@ F7E6;[{ "Type": "Mul", "Operands": ["esi"] }]
|
||||
F7E7;[{ "Type": "Mul", "Operands": ["edi"] }]
|
||||
|
||||
# MUL with memory operands
|
||||
F62425;[{ "Type": "Mul", "Operands": ["byte ptr [eax]"] }]
|
||||
F72425;[{ "Type": "Mul", "Operands": ["dword ptr [eax]"] }]
|
||||
F7242510000000;[{ "Type": "Mul", "Operands": ["dword ptr [eax+0x10]"] }]
|
||||
|
||||
# SPECIAL CASE: When using SIB byte with Base=101 (EBP) and Mod=00, it requires a 32-bit displacement
|
||||
# The correct encoding for "MUL byte ptr [eax]" would be F620 (with Mod=00, R/M=0 for EAX)
|
||||
# F62425;[{ "Type": "Mul", "Operands": ["byte ptr [eax]"] }]
|
||||
F620;[{ "Type": "Mul", "Operands": ["byte ptr [eax]"] }]
|
||||
|
||||
# The correct encoding for "MUL dword ptr [eax]" would be F720 (with Mod=00, R/M=0 for EAX)
|
||||
# F72425;[{ "Type": "Mul", "Operands": ["dword ptr [eax]"] }]
|
||||
F720;[{ "Type": "Mul", "Operands": ["dword ptr [eax]"] }]
|
||||
|
||||
# This test case has an issue - it should be a direct memory operand with a displacement
|
||||
# F7242510000000;[{ "Type": "Mul", "Operands": ["dword ptr [0x10]"] }]
|
||||
# The correct encoding for "MUL dword ptr [0x10]" would be F72510000000 (with Mod=00, R/M=5 for direct addressing)
|
||||
F72510000000;[{ "Type": "Mul", "Operands": ["dword ptr [0x10]"] }]
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 9.
|
Loading…
x
Reference in New Issue
Block a user