Add missing register16_t operator (>)

This commit is contained in:
Adrian Conlon 2022-01-01 23:01:59 +00:00
parent 4efa66c44e
commit bde2900017

View File

@ -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 {