2018-08-17 20:53:49 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Bus.h"
|
|
|
|
#include "Register.h"
|
|
|
|
#include "Processor.h"
|
|
|
|
|
|
|
|
namespace EightBit {
|
|
|
|
class BigEndianProcessor : public Processor {
|
|
|
|
protected:
|
2018-08-25 21:51:56 +00:00
|
|
|
BigEndianProcessor(Bus& memory);
|
2018-08-17 20:53:49 +00:00
|
|
|
virtual ~BigEndianProcessor() = default;
|
|
|
|
|
2018-08-25 21:51:56 +00:00
|
|
|
virtual register16_t getWord() override;
|
|
|
|
virtual void setWord(register16_t value) override;
|
2018-08-17 20:53:49 +00:00
|
|
|
|
2018-08-25 21:51:56 +00:00
|
|
|
virtual register16_t getWordPaged(uint8_t page, uint8_t offset) override;
|
|
|
|
virtual void setWordPaged(uint8_t page, uint8_t offset, register16_t value) override;
|
2018-08-17 20:53:49 +00:00
|
|
|
|
2018-08-25 21:51:56 +00:00
|
|
|
virtual register16_t fetchWord() final;
|
2018-08-17 20:53:49 +00:00
|
|
|
|
2018-08-25 21:51:56 +00:00
|
|
|
virtual void pushWord(register16_t value) final;
|
|
|
|
virtual register16_t popWord() final;
|
2018-08-17 20:53:49 +00:00
|
|
|
};
|
|
|
|
}
|