mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-16 18:30:32 +00:00
38 lines
603 B
C++
38 lines
603 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"
|
|
#include "Video.hpp"
|
|
|
|
namespace Sinclair {
|
|
namespace ZXSpectrum {
|
|
|
|
|
|
struct State: public Reflection::StructImpl<State> {
|
|
CPU::Z80::State z80;
|
|
Video::State video;
|
|
std::vector<uint8_t> ram;
|
|
|
|
State() {
|
|
if(needs_declare()) {
|
|
DeclareField(z80);
|
|
DeclareField(video);
|
|
DeclareField(ram);
|
|
}
|
|
}
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* State_h */
|