From bde290001700ecf48640a9e9fb82f90fe9538acf Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Sat, 1 Jan 2022 23:01:59 +0000 Subject: [PATCH] Add missing register16_t operator (>) --- inc/Register.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inc/Register.h b/inc/Register.h index 2f67a4c..0c0b972 100644 --- a/inc/Register.h +++ b/inc/Register.h @@ -79,9 +79,15 @@ namespace EightBit { return lhs.word <=> rhs.word; } #else + [[nodiscard]] constexpr inline auto operator!=(const register16_t lhs, const register16_t rhs) noexcept { return lhs.word != rhs.word; } + + [[nodiscard]] constexpr inline auto operator>(const register16_t lhs, const register16_t rhs) noexcept { + return lhs.word > rhs.word; + } + #endif [[nodiscard]] constexpr inline auto operator+(register16_t lhs, const register16_t rhs) noexcept {