mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-04-19 02:22:56 +00:00
Correct a couple of small oddities in the IntelProcessor InputOutput class.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
This commit is contained in:
+1
-2
@@ -15,12 +15,11 @@ uint8_t EightBit::InputOutput::peek(uint16_t) const {
|
||||
|
||||
uint8_t& EightBit::InputOutput::reference(uint16_t address) {
|
||||
const auto port = register16_t(address).low;
|
||||
switch (getAccessType()) {
|
||||
switch (accessType()) {
|
||||
case AccessType::Reading:
|
||||
return m_input.reference(port);
|
||||
case AccessType::Writing:
|
||||
return m_output.reference(port);
|
||||
case AccessType::Unknown:
|
||||
default:
|
||||
throw std::logic_error("Unknown I/O access type.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user