diff --git a/inc/InputOutput.h b/inc/InputOutput.h index 563ccde..0b6e51e 100644 --- a/inc/InputOutput.h +++ b/inc/InputOutput.h @@ -11,7 +11,7 @@ namespace EightBit { InputOutput() = default; [[nodiscard]] auto read(const uint8_t port) { return readInputPort(port); } - void write(const uint8_t port, const uint8_t value) { return writeOutputPort(port, value); } + void write(const uint8_t port, const uint8_t value) { writeOutputPort(port, value); } [[nodiscard]] uint8_t readInputPort(uint8_t port); void writeInputPort(const uint8_t port, const uint8_t value) noexcept { m_input[port] = value; } diff --git a/inc/Processor.h b/inc/Processor.h index e2e32b4..858595f 100644 --- a/inc/Processor.h +++ b/inc/Processor.h @@ -81,7 +81,7 @@ namespace EightBit { void setWord(const register16_t address, const register16_t value) { BUS().ADDRESS() = address; - return setWord(value); + setWord(value); } void jump(const register16_t destination) noexcept {