Skip to content

Commit dab262a

Browse files
fix: A20Gate enabled/disabled was switched
1 parent c70a0f9 commit dab262a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/Spice86.Core/Emulator/Devices/Input/Keyboard

src/Spice86.Core/Emulator/Devices/Input/Keyboard/Keyboard.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ public override void WriteByte(ushort port, byte value) {
9898
case KeyboardPorts.Data:
9999
_a20Gate.IsEnabled = Command switch {
100100
KeyboardCommand.WriteOutputPort => (value & 2) > 0,
101-
KeyboardCommand.EnableA20Gate => false,
102-
KeyboardCommand.DisableA20Gate => true,
101+
KeyboardCommand.EnableA20Gate => true,
102+
KeyboardCommand.DisableA20Gate => false,
103103
_ => _a20Gate.IsEnabled
104104
};
105105
Command = KeyboardCommand.None;

0 commit comments

Comments
 (0)