EightBit/LR35902/fusetest_LR35902/FuseRegisterState.h
Adrian.Conlon 78e5451f93 Remove remaining Z80 -> LR35902 test translation code.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
2017-08-12 14:29:12 +01:00

30 lines
482 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);
private:
void readInternal(std::ifstream& file);
void readExternal(std::ifstream& file);
static std::string hex(int value);
};
}