mirror of
https://github.com/TomHarte/CLK.git
synced 2024-10-19 14:25:35 +00:00
35 lines
537 B
C++
35 lines
537 B
C++
//
|
|
// State.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 25/04/2021.
|
|
// Copyright © 2021 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef State_hpp
|
|
#define State_hpp
|
|
|
|
#include "../../../Reflection/Struct.hpp"
|
|
#include "../../../Processors/Z80/State/State.hpp"
|
|
|
|
namespace Sinclair {
|
|
namespace ZXSpectrum {
|
|
|
|
|
|
struct State: public Reflection::StructImpl<State> {
|
|
CPU::Z80::State z80;
|
|
std::vector<uint8_t> ram;
|
|
|
|
State() {
|
|
if(needs_declare()) {
|
|
DeclareField(z80);
|
|
DeclareField(ram);
|
|
}
|
|
}
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* State_h */
|