1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Fix port.

This commit is contained in:
Thomas Harte 2023-10-27 14:04:23 -04:00
parent a30cad5e8a
commit 66cee41b99

View File

@ -1611,7 +1611,7 @@ template <
// Gets the port for an IN or OUT; these are always 16-bit.
const auto port = [&](Source source) -> uint16_t {
switch(source) {
case Source::DirectAddress: return instruction.operand();
case Source::DirectAddress: return instruction.offset();
default: return registers.dx();
}
};