EightBit/inc/BigEndianProcessor.h
Adrian Conlon a673a64c3f Lots of various changes suggested by the code analysis tools.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-11-27 22:36:54 +00:00

30 lines
696 B
C++

#pragma once
#include "Bus.h"
#include "Register.h"
#include "Processor.h"
namespace EightBit {
class BigEndianProcessor : public Processor {
public:
~BigEndianProcessor() {};
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;
};
}