EightBit/LR35902/fusetest_LR35902/FuseMemoryDatum.h
Adrian.Conlon 42b1b7dc53 Add a one off converter for Z80 -> LR35902 fuse tests (TBC!)
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
2017-08-10 23:46:41 +01:00

24 lines
364 B
C++

#pragma once
#include <cinttypes>
#include <vector>
#include <fstream>
namespace Fuse {
class MemoryDatum {
private:
bool finish;
public:
int address;
std::vector<uint8_t> bytes;
MemoryDatum()
: address(-1),
finish(false) {}
bool finished() const { return finish; }
void read(std::ifstream& file);
void write(std::ofstream& file);
};
}