EightBit/Z80/fusetest_Z80/FuseRegisterState.h
Adrian.Conlon cae34d61d1 Ensure the Z80 unit tests run successfully to completion.
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
2017-09-07 01:04:09 +01:00

29 lines
512 B
C++

#pragma once
#include <vector>
#include <string>
#include <fstream>
#include <Register.h>
namespace Fuse {
class RegisterState {
public:
enum {
AF, BC, DE, HL, AF_, BC_, DE_, HL_, IX, IY, SP, PC, MEMPTR, NUMBER_OF_REGISTERS
};
std::vector<EightBit::register16_t> registers;
int i, r;
bool iff1, iff2;
int im;
bool halted;
int tstates;
public:
RegisterState();
void read(std::ifstream& file);
void readInternal(std::ifstream& file);
void readExternal(std::ifstream& file);
};
}