1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-25 16:31:42 +00:00

Without yet a struct for Spectrum states, at least checks general wiring.

This commit is contained in:
Thomas Harte 2021-04-24 23:38:00 -04:00
parent 5b419ca5bf
commit 485c2a866c

View File

@ -7,10 +7,17 @@
// //
#include "SNA.hpp" #include "SNA.hpp"
#include "../../Analyser/Static/ZXSpectrum/Target.hpp"
using namespace Storage::State; using namespace Storage::State;
std::unique_ptr<Analyser::Static::Target> SNA::load(const std::string &file_name) { std::unique_ptr<Analyser::Static::Target> SNA::load(const std::string &file_name) {
using Target = Analyser::Static::ZXSpectrum::Target;
auto result = std::make_unique<Target>();
// SNAs are always for 48kb machines.
result->model = Target::Model::FortyEightK;
// 0x1a byte header: // 0x1a byte header:
// //
// 00 I // 00 I
@ -34,5 +41,6 @@ std::unique_ptr<Analyser::Static::Target> SNA::load(const std::string &file_name
// (perform a POP to get the PC) // (perform a POP to get the PC)
(void)file_name; (void)file_name;
return nullptr;
return result;
} }