0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-19 07:59:47 +03:00

fix xor AX, 16bit imm

This commit is contained in:
bird_egop
2025-04-13 19:55:13 +03:00
parent b0ade45f1b
commit 89b2b32cd6
2 changed files with 63 additions and 2 deletions

View File

@ -64,3 +64,61 @@ RawBytes;Instructions
# XOR with negative immediate value (sign-extended)
83F0FF;[{ "Mnemonic": "xor", "Operands": "eax, 0xFFFFFFFF" }]
# 16-bit XOR tests (with 0x66 prefix)
# XOR AX, imm16 (opcode 0x35 with 0x66 prefix)
6635ABCD;[{ "Mnemonic": "xor", "Operands": "ax, 0xCDAB" }]
# XOR r16, r/m16 (opcode 0x33 with 0x66 prefix)
6633D8;[{ "Mnemonic": "xor", "Operands": "bx, ax" }]
6633C9;[{ "Mnemonic": "xor", "Operands": "cx, cx" }]
# XOR r/m16, r16 (opcode 0x31 with 0x66 prefix)
6631D8;[{ "Mnemonic": "xor", "Operands": "ax, bx" }]
6631C9;[{ "Mnemonic": "xor", "Operands": "cx, cx" }]
# XOR r/m16, imm16 (opcode 0x81 /6 with 0x66 prefix)
6681F0ABCD;[{ "Mnemonic": "xor", "Operands": "ax, 0xCDAB" }]
# XOR r/m16, imm8 (sign-extended) (opcode 0x83 /6 with 0x66 prefix)
6683F042;[{ "Mnemonic": "xor", "Operands": "ax, 0x42" }]
6683F0FF;[{ "Mnemonic": "xor", "Operands": "ax, 0xFFFF" }]
# 8-bit XOR tests
# XOR r/m8, r8 (opcode 0x30)
30D8;[{ "Mnemonic": "xor", "Operands": "al, bl" }]
30C9;[{ "Mnemonic": "xor", "Operands": "cl, cl" }]
# XOR r8, r/m8 (opcode 0x32)
32D8;[{ "Mnemonic": "xor", "Operands": "bl, al" }]
32C9;[{ "Mnemonic": "xor", "Operands": "cl, cl" }]
# XOR r/m8, imm8 (opcode 0x80 /6)
80F042;[{ "Mnemonic": "xor", "Operands": "al, 0x42" }]
80F0FF;[{ "Mnemonic": "xor", "Operands": "al, 0xFF" }]
# Self-XOR tests (zeroing registers)
31C0;[{ "Mnemonic": "xor", "Operands": "eax, eax" }]
31DB;[{ "Mnemonic": "xor", "Operands": "ebx, ebx" }]
31C9;[{ "Mnemonic": "xor", "Operands": "ecx, ecx" }]
31D2;[{ "Mnemonic": "xor", "Operands": "edx, edx" }]
# XOR with different addressing modes
# XOR [ebp+0x8], eax (opcode 0x31)
31458;[{ "Mnemonic": "xor", "Operands": "dword ptr [ebp+0x8], eax" }]
# XOR eax, [ebp+0x8] (opcode 0x33)
33458;[{ "Mnemonic": "xor", "Operands": "eax, dword ptr [ebp+0x8]" }]
# XOR with other segment overrides
# XOR ss:[ebx+0x10], ecx (opcode 0x31 with SS override)
36314B10;[{ "Mnemonic": "xor", "Operands": "dword ptr ss:[ebx+0x10], ecx" }]
# XOR ecx, ds:[ebx+0x10] (opcode 0x33 with DS override)
3E334B10;[{ "Mnemonic": "xor", "Operands": "ecx, dword ptr ds:[ebx+0x10]" }]
# XOR ecx, es:[ebx+0x10] (opcode 0x33 with ES override)
26334B10;[{ "Mnemonic": "xor", "Operands": "ecx, dword ptr es:[ebx+0x10]" }]
# XOR ecx, cs:[ebx+0x10] (opcode 0x33 with CS override)
2E334B10;[{ "Mnemonic": "xor", "Operands": "ecx, dword ptr cs:[ebx+0x10]" }]

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