EightBit/LR35902/fusetest_LR35902/FuseRegisterState.h
Adrian.Conlon f0515ae65f First stab at a port of the fuse tests to LR35902.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
2017-08-10 20:34:17 +01:00

26 lines
433 B
C++

#pragma once
#include <vector>
#include <string>
#include <fstream>
#include "Memory.h"
namespace Fuse {
class RegisterState {
public:
enum {
AF, BC, DE, HL, SP, PC, NUMBER_OF_REGISTERS
};
std::vector<EightBit::register16_t> registers;
bool halted;
int tstates;
public:
RegisterState();
void read(std::ifstream& file);
void readInternal(std::ifstream& file);
void readExternal(std::ifstream& file);
};
}