-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address of CfgNodes is a segmented address and not a physical address…
… to take into account the differences in execution results when an instruction at the same physical address is executed with different segmented addresses
- Loading branch information
1 parent
a3e0a25
commit 47802dc
Showing
24 changed files
with
371 additions
and
94 deletions.
There are no files selected for viewing
8 changes: 5 additions & 3 deletions
8
src/Spice86.Core/Emulator/CPU/CfgCpu/ControlFlowGraph/CfgNode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/Spice86.Core/Emulator/CPU/CfgCpu/ControlFlowGraph/ICfgNode.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/Spice86.Core/Emulator/CPU/CfgCpu/ParsedInstruction/Instructions/HltInstruction.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/Spice86.Core/Emulator/CPU/CfgCpu/ParsedInstruction/Instructions/JmpNearImm.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/Spice86.Core/Emulator/CPU/CfgCpu/ParsedInstruction/Instructions/JmpNearImm16.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
namespace Spice86.Core.Emulator.CPU.CfgCpu.ParsedInstruction.Instructions; | ||
|
||
using Spice86.Shared.Emulator.Memory; | ||
|
||
public class JmpNearImm16 : JmpNearImm<short> { | ||
public override void Visit(ICfgNodeVisitor visitor) { | ||
visitor.Accept(this); | ||
} | ||
|
||
public JmpNearImm16(uint physicalAddress, InstructionField<byte> opcodeField, InstructionField<short> offsetField) : | ||
base(physicalAddress, opcodeField, offsetField) { | ||
public JmpNearImm16(SegmentedAddress address, InstructionField<byte> opcodeField, InstructionField<short> offsetField) : | ||
base(address, opcodeField, offsetField) { | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
src/Spice86.Core/Emulator/CPU/CfgCpu/ParsedInstruction/Instructions/JmpNearImm8.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
namespace Spice86.Core.Emulator.CPU.CfgCpu.ParsedInstruction.Instructions; | ||
|
||
using Spice86.Shared.Emulator.Memory; | ||
|
||
public class JmpNearImm8 : JmpNearImm<sbyte> { | ||
public override void Visit(ICfgNodeVisitor visitor) { | ||
visitor.Accept(this); | ||
} | ||
|
||
public JmpNearImm8(uint physicalAddress, InstructionField<byte> opcodeField, InstructionField<sbyte> offsetField) : | ||
base(physicalAddress, opcodeField, offsetField) { | ||
public JmpNearImm8(SegmentedAddress address, InstructionField<byte> opcodeField, InstructionField<sbyte> offsetField) : | ||
base(address, opcodeField, offsetField) { | ||
} | ||
} |
5 changes: 3 additions & 2 deletions
5
src/Spice86.Core/Emulator/CPU/CfgCpu/ParsedInstruction/Instructions/MovRegImm.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/Spice86.Core/Emulator/CPU/CfgCpu/ParsedInstruction/Instructions/MovRegImm16.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
src/Spice86.Core/Emulator/CPU/CfgCpu/ParsedInstruction/Instructions/MovRegImm32.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.