EightBit/inc/BigEndianProcessor.h
Adrian Conlon 759b4a9fa8 GameBoy: Correct a few (very minor C++) niggles in the implementation. No functional changes.
Signed-off-by: Adrian Conlon <adrian.conlon@gmail.com>
2020-11-07 09:41:12 +00:00

31 lines
700 B
C++

#pragma once
#include "Processor.h"
namespace EightBit {
class Bus;
class BigEndianProcessor : public Processor {
public:
virtual ~BigEndianProcessor() = default;
[[nodiscard]] register16_t peekWord(register16_t address) final;
void pokeWord(register16_t address, register16_t value) final;
protected:
BigEndianProcessor(Bus& memory);
register16_t getWord() override;
void setWord(register16_t value) override;
register16_t getWordPaged(uint8_t page, uint8_t offset) override;
void setWordPaged(uint8_t page, uint8_t offset, register16_t value) override;
register16_t fetchWord() final;
void pushWord(register16_t value) final;
register16_t popWord() final;
};
}