EightBit/inc/LittleEndianProcessor.h

31 lines
865 B
C
Raw Normal View History

#pragma once
#include "Processor.h"
namespace EightBit {
class Bus;
class LittleEndianProcessor : public Processor {
public:
LittleEndianProcessor(const LittleEndianProcessor& rhs);
[[nodiscard]] register16_t peekWord(register16_t address) noexcept final;
void pokeWord(register16_t address, register16_t value) noexcept final;
protected:
LittleEndianProcessor(Bus& memory);
2022-01-17 19:10:15 +00:00
[[nodiscard]] register16_t getWord() noexcept override;
void setWord(register16_t value) noexcept override;
2022-01-17 19:10:15 +00:00
[[nodiscard]] register16_t getWordPaged(uint8_t page, uint8_t offset) noexcept override;
void setWordPaged(uint8_t page, uint8_t offset, register16_t value) noexcept override;
2022-01-17 19:10:15 +00:00
[[nodiscard]] register16_t fetchWord() noexcept final;
2022-01-17 19:10:15 +00:00
void pushWord(register16_t value) noexcept override;
[[nodiscard]] register16_t popWord() noexcept override;
};
}