mirror of
https://github.com/MoleskiCoder/EightBit.git
synced 2024-07-06 08:28:59 +00:00
26 lines
433 B
C
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);
|
||
|
};
|
||
|
}
|