2018-11-25 10:43:51 +00:00
|
|
|
#include "stdafx.h"
|
2021-05-29 09:31:32 +00:00
|
|
|
#include "../inc/UnusedMemory.h"
|
2018-11-25 10:43:51 +00:00
|
|
|
|
|
|
|
EightBit::UnusedMemory::UnusedMemory(const size_t size, const uint8_t value)
|
|
|
|
: m_size(size), m_value(value) {}
|
|
|
|
|
|
|
|
size_t EightBit::UnusedMemory::size() const {
|
|
|
|
return m_size;
|
|
|
|
}
|
|
|
|
|
|
|
|
uint8_t EightBit::UnusedMemory::peek(uint16_t) const {
|
|
|
|
return m_value;
|
|
|
|
}
|
|
|
|
|
|
|
|
int EightBit::UnusedMemory::load(std::ifstream&, int, int, int) {
|
2018-11-27 22:36:54 +00:00
|
|
|
throw std::logic_error("load operation not allowed.");
|
2018-11-25 10:43:51 +00:00
|
|
|
}
|
|
|
|
|
2020-11-07 09:41:12 +00:00
|
|
|
int EightBit::UnusedMemory::load(std::string, int, int, int) {
|
2018-11-27 22:36:54 +00:00
|
|
|
throw std::logic_error("load operation not allowed.");
|
2018-11-25 10:43:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int EightBit::UnusedMemory::load(const std::vector<uint8_t>&, int, int, int) {
|
2018-11-27 22:36:54 +00:00
|
|
|
throw std::logic_error("load operation not allowed.");
|
2018-11-25 10:43:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void EightBit::UnusedMemory::poke(uint16_t, uint8_t) {
|
2018-11-27 22:36:54 +00:00
|
|
|
throw std::logic_error("Poke operation not allowed.");
|
2018-11-25 10:43:51 +00:00
|
|
|
}
|