0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-20 08:18:36 +03:00

Enhanced test coverage for DIV, flag control, and FNSTSW instructions

This commit is contained in:
bird_egop
2025-04-15 22:35:14 +03:00
parent 6169d68967
commit 904f0eed47
3 changed files with 106 additions and 1 deletions

View File

@ -7,6 +7,10 @@ F6F0;[{ "Type": "Div", "Operands": ["al"] }]
F6F3;[{ "Type": "Div", "Operands": ["bl"] }]
F6F1;[{ "Type": "Div", "Operands": ["cl"] }]
F6F2;[{ "Type": "Div", "Operands": ["dl"] }]
F6F4;[{ "Type": "Div", "Operands": ["ah"] }]
F6F5;[{ "Type": "Div", "Operands": ["ch"] }]
F6F6;[{ "Type": "Div", "Operands": ["dh"] }]
F6F7;[{ "Type": "Div", "Operands": ["bh"] }]
# DIV r/m32 (opcode F7 /6)
F7F0;[{ "Type": "Div", "Operands": ["eax"] }]
@ -19,6 +23,29 @@ F7F6;[{ "Type": "Div", "Operands": ["esi"] }]
F7F7;[{ "Type": "Div", "Operands": ["edi"] }]
# DIV with memory operands
# Basic memory addressing
F63425;[{ "Type": "Div", "Operands": ["byte ptr [eax]"] }]
F63C25;[{ "Type": "Div", "Operands": ["byte ptr [ebp]"] }]
F63825;[{ "Type": "Div", "Operands": ["byte ptr [eax]"] }]
F73425;[{ "Type": "Div", "Operands": ["dword ptr [eax]"] }]
F7342510000000;[{ "Type": "Div", "Operands": ["dword ptr [eax+0x10]"] }]
F73C25;[{ "Type": "Div", "Operands": ["dword ptr [ebp]"] }]
F73825;[{ "Type": "Div", "Operands": ["dword ptr [eax]"] }]
# With displacement
F7742510000000;[{ "Type": "Div", "Operands": ["dword ptr [eax+0x10]"] }]
F7742520000000;[{ "Type": "Div", "Operands": ["dword ptr [eax+0x20]"] }]
F7742530000000;[{ "Type": "Div", "Operands": ["dword ptr [eax+0x30]"] }]
# With SIB addressing
F7341C;[{ "Type": "Div", "Operands": ["dword ptr [esp+ebx*1]"] }]
F7345C;[{ "Type": "Div", "Operands": ["dword ptr [esp+ebx*2]"] }]
F7349C;[{ "Type": "Div", "Operands": ["dword ptr [esp+ebx*4]"] }]
F734DC;[{ "Type": "Div", "Operands": ["dword ptr [esp+ebx*8]"] }]
# With segment override prefixes
26F73425;[{ "Type": "Div", "Operands": ["dword ptr es:[eax]"] }]
2EF73425;[{ "Type": "Div", "Operands": ["dword ptr cs:[eax]"] }]
36F73425;[{ "Type": "Div", "Operands": ["dword ptr ss:[eax]"] }]
3EF73425;[{ "Type": "Div", "Operands": ["dword ptr ds:[eax]"] }]
64F73425;[{ "Type": "Div", "Operands": ["dword ptr fs:[eax]"] }]
65F73425;[{ "Type": "Div", "Operands": ["dword ptr gs:[eax]"] }]

Can't render this file because it contains an unexpected character in line 6 and column 9.