mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-19 07:59:47 +03:00
nice big refactor
This commit is contained in:
@ -24,7 +24,7 @@ public class CmpInstructionSequenceTests
|
||||
// Assert
|
||||
Assert.Single(instructions);
|
||||
Assert.Equal("cmp", instructions[0].Mnemonic);
|
||||
Assert.Equal("byte ptr [ebp+0x00], 0x03", instructions[0].Operands);
|
||||
Assert.Equal("byte ptr [ebp], 0x03", instructions[0].Operands);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -47,7 +47,7 @@ public class CmpInstructionSequenceTests
|
||||
|
||||
// First instruction: CMP BYTE PTR [EBP], 0x03
|
||||
Assert.Equal("cmp", instructions[0].Mnemonic);
|
||||
Assert.Equal("byte ptr [ebp+0x00], 0x03", instructions[0].Operands);
|
||||
Assert.Equal("byte ptr [ebp], 0x03", instructions[0].Operands);
|
||||
|
||||
// Second instruction: JGE +5
|
||||
Assert.Equal("jge", instructions[1].Mnemonic);
|
||||
@ -81,7 +81,7 @@ public class CmpInstructionSequenceTests
|
||||
|
||||
// First instruction: CMP BYTE PTR [EBP], 0x03
|
||||
Assert.Equal("cmp", instructions[0].Mnemonic);
|
||||
Assert.Equal("byte ptr [ebp+0x00], 0x03", instructions[0].Operands);
|
||||
Assert.Equal("byte ptr [ebp], 0x03", instructions[0].Operands);
|
||||
|
||||
// Second instruction: JGE +5
|
||||
Assert.Equal("jge", instructions[1].Mnemonic);
|
||||
|
@ -105,10 +105,10 @@ RawBytes;Instructions
|
||||
|
||||
# XOR with different addressing modes
|
||||
# XOR [ebp+0x8], eax (opcode 0x31)
|
||||
31458;[{ "Mnemonic": "xor", "Operands": "dword ptr [ebp+0x8], eax" }]
|
||||
314508;[{ "Mnemonic": "xor", "Operands": "dword ptr [ebp+0x08], eax" }]
|
||||
|
||||
# XOR eax, [ebp+0x8] (opcode 0x33)
|
||||
33458;[{ "Mnemonic": "xor", "Operands": "eax, dword ptr [ebp+0x8]" }]
|
||||
334508;[{ "Mnemonic": "xor", "Operands": "eax, dword ptr [ebp+0x08]" }]
|
||||
|
||||
# XOR with other segment overrides
|
||||
# XOR ss:[ebx+0x10], ecx (opcode 0x31 with SS override)
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 9.
|
Reference in New Issue
Block a user