EightBit/inc/BigEndianProcessor.h
Adrian Conlon a8cc289149 Whoops: The "Bus" class *really* isn't allowed to know the "endianness" of the attached processor!
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-08-27 11:27:33 +01:00

28 lines
709 B
C++

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