EightBit/Z80/fusetest_Z80/FuseTest.cpp
Adrian.Conlon 982bccf0c9 First stab at adding Fuse Test runner.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
2017-06-05 23:24:08 +01:00

26 lines
465 B
C++

#include "stdafx.h"
#include "FuseTest.h"
void Fuse::Test::read(std::ifstream& file) {
finish = false;
do {
std::getline(file, description);
finish = file.eof();
} while (description.empty() && !finish);
if (finish)
return;
registerState.read(file);
bool complete = false;
do {
MemoryDatum memoryDatum;
memoryDatum.read(file);
complete = memoryDatum.finished();
if (!complete)
memoryData.push_back(memoryDatum);
} while (!complete);
}