0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-19 16:08:02 +03:00

Added CSV test files for various instruction types and enabled comments in CSV files

This commit is contained in:
bird_egop
2025-04-13 17:17:28 +03:00
parent 3f4b9a8547
commit d1d52af511
8 changed files with 59 additions and 257 deletions

View File

@ -0,0 +1,2 @@
RawBytes;Instructions
90;[{ "Mnemonic": "nop", "Operands": "" }]
Can't render this file because it contains an unexpected character in line 2 and column 7.

View File

@ -0,0 +1,3 @@
RawBytes;Instructions
6810000000;[{ "Mnemonic": "push", "Operands": "0x00000010" }]
6A10;[{ "Mnemonic": "push", "Operands": "0x10" }]
Can't render this file because it contains an unexpected character in line 2 and column 15.

View File

@ -0,0 +1,7 @@
RawBytes;Instructions
26FF7510;[{ "Mnemonic": "push", "Operands": "dword ptr es:[ebp+0x10]" }]
2EFF7510;[{ "Mnemonic": "push", "Operands": "dword ptr cs:[ebp+0x10]" }]
36FF7510;[{ "Mnemonic": "push", "Operands": "dword ptr ss:[ebp+0x10]" }]
3EFF7510;[{ "Mnemonic": "push", "Operands": "dword ptr ds:[ebp+0x10]" }]
64FF7510;[{ "Mnemonic": "push", "Operands": "dword ptr fs:[ebp+0x10]" }]
65FF7510;[{ "Mnemonic": "push", "Operands": "dword ptr gs:[ebp+0x10]" }]
Can't render this file because it contains an unexpected character in line 2 and column 13.

View File

@ -0,0 +1,25 @@
# SUB instruction tests
# Format: RawBytes;Instructions
RawBytes;Instructions
# Register-to-register SUB
29D8;[{ "Mnemonic": "sub", "Operands": "eax, ebx" }]
# Register-to-memory SUB
294B10;[{ "Mnemonic": "sub", "Operands": "dword ptr [ebx+0x10], ecx" }]
# Memory-to-register SUB
2BD8;[{ "Mnemonic": "sub", "Operands": "ebx, eax" }]
2B4B10;[{ "Mnemonic": "sub", "Operands": "ecx, dword ptr [ebx+0x10]" }]
# Immediate-to-register SUB (32-bit immediate)
81E878563412;[{ "Mnemonic": "sub", "Operands": "eax, 0x12345678" }]
# Immediate-to-memory SUB (32-bit immediate)
816B1078563412;[{ "Mnemonic": "sub", "Operands": "dword ptr [ebx+0x10], 0x12345678" }]
# Small immediate SUB (8-bit immediate)
83E842;[{ "Mnemonic": "sub", "Operands": "eax, 0x42" }]
# Sign-extended immediate SUB (8-bit immediate sign-extended to 32-bit)
83E8F0;[{ "Mnemonic": "sub", "Operands": "eax, 0xFFFFFFF0" }]
Can't render this file because it contains an unexpected character in line 6 and column 9.

View File

@ -0,0 +1,8 @@
RawBytes;Instructions
91;[{ "Mnemonic": "xchg", "Operands": "eax, ecx" }]
92;[{ "Mnemonic": "xchg", "Operands": "eax, edx" }]
93;[{ "Mnemonic": "xchg", "Operands": "eax, ebx" }]
94;[{ "Mnemonic": "xchg", "Operands": "eax, esp" }]
95;[{ "Mnemonic": "xchg", "Operands": "eax, ebp" }]
96;[{ "Mnemonic": "xchg", "Operands": "eax, esi" }]
97;[{ "Mnemonic": "xchg", "Operands": "eax, edi" }]
Can't render this file because it contains an unexpected character in line 2 and column 7.