Couple of small tidy ups

This commit is contained in:
Adrian Conlon committed 2026-06-02 17:28:24 +01:00
1 parent f5d2ee2e0e
commit 7add835554
1 file changed
+1 -4
+1 -4
View File
@@ -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<register16_t(void)> addresser_t;
//void loadAccumulatorIndirect(addresser_t addresser) noexcept;
//void storeAccumulatorIndirect(addresser_t addresser) noexcept;
typedef std::function<uint8_t(void)> reader_t;
void readInternalRegister(reader_t reader) noexcept;