mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-20 08:18:36 +03:00
Unified ADC accumulator handlers into a single handler
This commit is contained in:
@ -245,27 +245,6 @@ public class SegmentOverrideTests
|
||||
Assert.Equal(-4, memoryOperand.Displacement);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tests that the FS segment override prefix (0x64) is correctly recognized when it's the only byte
|
||||
/// </summary>
|
||||
[Fact]
|
||||
public void FsSegmentOverride_Alone_IsRecognized()
|
||||
{
|
||||
// Arrange
|
||||
// Just the FS segment override prefix (0x64)
|
||||
byte[] codeBuffer = new byte[] { 0x64 };
|
||||
var disassembler = new Disassembler(codeBuffer, 0);
|
||||
|
||||
// Act
|
||||
var instructions = disassembler.Disassemble();
|
||||
|
||||
// Assert
|
||||
Assert.Single(instructions);
|
||||
var instruction = instructions[0];
|
||||
Assert.NotNull(instruction);
|
||||
Assert.Equal(InstructionType.Rep, instruction.Type);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Tests segment override with a complex addressing mode
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user