mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-11-09 13:07:15 +00:00
129286f1a7
Signed-off-by: Adrian.Conlon <adrian.conlon@gmail.com>
30 lines
484 B
C++
30 lines
484 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);
|
|
|
|
static std::string hex(int value);
|
|
};
|
|
} |