diff --git a/inc/Register.h b/inc/Register.h index 3e03a16..89cc47e 100644 --- a/inc/Register.h +++ b/inc/Register.h @@ -74,8 +74,8 @@ namespace EightBit { return lhs.word == rhs.word; } - [[nodiscard]] constexpr inline auto operator!=(const register16_t lhs, const register16_t rhs) noexcept { - return !(lhs == rhs); + [[nodiscard]] constexpr auto operator<=>(const register16_t lhs, const register16_t rhs) noexcept { + return lhs.word <=> rhs.word; } [[nodiscard]] constexpr inline auto operator+(register16_t lhs, const register16_t rhs) noexcept {