mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 08:18:36 +03:00
add tons of tests
This commit is contained in:
32
X86DisassemblerTests/TestData/shr_tests.csv
Normal file
32
X86DisassemblerTests/TestData/shr_tests.csv
Normal file
@ -0,0 +1,32 @@
|
||||
# SHR instruction tests
|
||||
# Format: RawBytes;Instructions
|
||||
RawBytes;Instructions
|
||||
|
||||
# SHR r/m8, 1 (opcode D0 /5)
|
||||
D0E8;[{ "Type": "Shr", "Operands": ["al", "0x01"] }]
|
||||
D0EB;[{ "Type": "Shr", "Operands": ["bl", "0x01"] }]
|
||||
|
||||
# SHR r/m32, 1 (opcode D1 /5)
|
||||
D1E8;[{ "Type": "Shr", "Operands": ["eax", "0x01"] }]
|
||||
D1EB;[{ "Type": "Shr", "Operands": ["ebx", "0x01"] }]
|
||||
|
||||
# SHR r/m8, CL (opcode D2 /5)
|
||||
D2E8;[{ "Type": "Shr", "Operands": ["al", "cl"] }]
|
||||
D2EB;[{ "Type": "Shr", "Operands": ["bl", "cl"] }]
|
||||
|
||||
# SHR r/m32, CL (opcode D3 /5)
|
||||
D3E8;[{ "Type": "Shr", "Operands": ["eax", "cl"] }]
|
||||
D3EB;[{ "Type": "Shr", "Operands": ["ebx", "cl"] }]
|
||||
|
||||
# SHR r/m8, imm8 (opcode C0 /5)
|
||||
C0E805;[{ "Type": "Shr", "Operands": ["al", "0x05"] }]
|
||||
C0EB05;[{ "Type": "Shr", "Operands": ["bl", "0x05"] }]
|
||||
|
||||
# SHR r/m32, imm8 (opcode C1 /5)
|
||||
C1E805;[{ "Type": "Shr", "Operands": ["eax", "0x05"] }]
|
||||
C1EB05;[{ "Type": "Shr", "Operands": ["ebx", "0x05"] }]
|
||||
|
||||
# SHR with memory operands
|
||||
D02C2510;[{ "Type": "Shr", "Operands": ["byte ptr [eax+0x10]", "0x01"] }]
|
||||
D32C25;[{ "Type": "Shr", "Operands": ["dword ptr [eax]", "cl"] }]
|
||||
C12C2505;[{ "Type": "Shr", "Operands": ["dword ptr [eax]", "0x05"] }]
|
Can't render this file because it contains an unexpected character in line 6 and column 9.
|
Reference in New Issue
Block a user