mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-09 13:07:15 +00:00
8823bb6610
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
25 lines
638 B
C++
25 lines
638 B
C++
#pragma once
|
|
|
|
#include "Bus.h"
|
|
#include "Register.h"
|
|
#include "Processor.h"
|
|
|
|
namespace EightBit {
|
|
class BigEndianProcessor : public Processor {
|
|
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;
|
|
};
|
|
}
|