EightBit/inc/LittleEndianProcessor.h
Adrian Conlon 7e527ff093 Add Processor::pokeWord to define an endian specific 16-bit word write.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2018-10-14 10:05:43 +01:00

29 lines
791 B
C++

#pragma once
#include "Bus.h"
#include "Register.h"
#include "Processor.h"
namespace EightBit {
class LittleEndianProcessor : public Processor {
public:
virtual register16_t peekWord(register16_t address) final;
virtual void pokeWord(register16_t address, register16_t value) final;
protected:
LittleEndianProcessor(Bus& memory);
virtual ~LittleEndianProcessor() = 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;
};
}