From 7add8355544a2ef6477122a1fb2d2e28523f4e84 Mon Sep 17 00:00:00 2001 From: Adrian Conlon Date: Tue, 2 Jun 2026 17:28:24 +0100 Subject: [PATCH] Couple of small tidy ups --- Z80/inc/Z80.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Z80/inc/Z80.h b/Z80/inc/Z80.h index bb0ee27..7031f2c 100644 --- a/Z80/inc/Z80.h +++ b/Z80/inc/Z80.h @@ -167,6 +167,7 @@ namespace EightBit { [[nodiscard]] constexpr auto displaced() const noexcept { return m_prefixDD || m_prefixFD; } [[nodiscard]] constexpr void displaceAddress() noexcept { + assert(displaced() && "Address can only be displaced if a prefix is active"); const auto& index_register = m_prefixDD ? IX() : IY(); BUS().ADDRESS() = MEMPTR() = index_register.joined + m_displacement; } @@ -176,10 +177,6 @@ namespace EightBit { uint8_t readDataUnderInterrupt() noexcept; - typedef std::function addresser_t; - //void loadAccumulatorIndirect(addresser_t addresser) noexcept; - //void storeAccumulatorIndirect(addresser_t addresser) noexcept; - typedef std::function reader_t; void readInternalRegister(reader_t reader) noexcept;