mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-08 14:25:05 +00:00
Fix port.
This commit is contained in:
@@ -1611,7 +1611,7 @@ template <
|
|||||||
// Gets the port for an IN or OUT; these are always 16-bit.
|
// Gets the port for an IN or OUT; these are always 16-bit.
|
||||||
const auto port = [&](Source source) -> uint16_t {
|
const auto port = [&](Source source) -> uint16_t {
|
||||||
switch(source) {
|
switch(source) {
|
||||||
case Source::DirectAddress: return instruction.operand();
|
case Source::DirectAddress: return instruction.offset();
|
||||||
default: return registers.dx();
|
default: return registers.dx();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user