0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-05-19 20:01:17 +03:00
2025-04-15 22:20:46 +03:00

4.7 KiB

1# XOR instruction tests
2# Format: RawBytes;Instructions
3RawBytes;Instructions
4# Register-to-register XOR (32-bit)
5# Register-to-memory XOR (32-bit)
6# Memory-to-register XOR (32-bit)
7# Immediate-to-register XOR (32-bit immediate)
8# Immediate-to-memory XOR (32-bit immediate)
9# Small immediate XOR (8-bit immediate to 32-bit register with sign extension)
10# Sign-extended immediate XOR (8-bit immediate sign-extended to 32-bit)
11# XOR AL, imm8 (opcode 0x34)
12# XOR EAX, imm32 (opcode 0x35)
13# XOR with SIB byte addressing (Scale-Index-Base)
14# XOR [eax+ecx*4], edx (opcode 0x31)
15# XOR edx, [eax+ecx*4] (opcode 0x33)
16# XOR with displacement-only addressing
17# XOR [0x12345678], eax (opcode 0x31)
18# XOR with segment override prefixes
19# XOR fs:[ebx+0x10], ecx (opcode 0x31 with FS override)
20# XOR ecx, gs:[ebx+0x10] (opcode 0x33 with GS override)
21# XOR with complex addressing mode: base + index + scale + displacement
22# XOR [eax+ecx*4+0x12345678], edx (opcode 0x31)
23# Edge cases for immediate values
24# XOR eax, 0x0 (opcode 0x83 /6 with zero immediate)
25# XOR al, 0xFF (opcode 0x34 with max 8-bit immediate)
26# XOR eax, 0xFFFFFFFF (opcode 0x81 /6 with max 32-bit immediate)
27# XOR with negative immediate value (sign-extended)
28# 16-bit XOR tests (with 0x66 prefix)
29# XOR AX, imm16 (opcode 0x35 with 0x66 prefix)
30# XOR r16, r/m16 (opcode 0x33 with 0x66 prefix)
31# XOR r/m16, r16 (opcode 0x31 with 0x66 prefix)
32# XOR r/m16, imm16 (opcode 0x81 /6 with 0x66 prefix)
33# XOR r/m16, imm8 (sign-extended) (opcode 0x83 /6 with 0x66 prefix)
34# 8-bit XOR tests
35# XOR r/m8, r8 (opcode 0x30)
36# XOR r8, r/m8 (opcode 0x32)
37# XOR r/m8, imm8 (opcode 0x80 /6)
38# Self-XOR tests (zeroing registers)
39# XOR with different addressing modes
40# XOR [ebp+0x8], eax (opcode 0x31)
41# XOR eax, [ebp+0x8] (opcode 0x33)
42# XOR with other segment overrides
43# XOR ss:[ebx+0x10], ecx (opcode 0x31 with SS override)
44# XOR ecx, ds:[ebx+0x10] (opcode 0x33 with DS override)
45# XOR ecx, es:[ebx+0x10] (opcode 0x33 with ES override)
46# XOR ecx, cs:[ebx+0x10] (opcode 0x33 with CS override)