EightBit/LR35902/fusetest_LR35902/FuseRegisterState.h
Adrian Conlon 03975bd76b Remove unneeded "hex" method.
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-08-06 13:15:39 +01:00

28 lines
446 B
C++

#pragma once
#include <vector>
#include <string>
#include <fstream>
#include <Register.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);
};
}