mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2026-10-22 07:02:37 +00:00
Couple of small tidy ups
This commit is contained in:
1 parent
f5d2ee2e0e
commit
7add835554
1 file changed
+1
-4
+1
-4
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user