From 485c2a866c67cc8309a0da90999912918492cd64 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sat, 24 Apr 2021 23:38:00 -0400 Subject: [PATCH] Without yet a struct for Spectrum states, at least checks general wiring. --- Storage/State/SNA.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Storage/State/SNA.cpp b/Storage/State/SNA.cpp index 15595cab2..99af049d1 100644 --- a/Storage/State/SNA.cpp +++ b/Storage/State/SNA.cpp @@ -7,10 +7,17 @@ // #include "SNA.hpp" +#include "../../Analyser/Static/ZXSpectrum/Target.hpp" using namespace Storage::State; std::unique_ptr SNA::load(const std::string &file_name) { + using Target = Analyser::Static::ZXSpectrum::Target; + auto result = std::make_unique(); + + // SNAs are always for 48kb machines. + result->model = Target::Model::FortyEightK; + // 0x1a byte header: // // 00 I @@ -34,5 +41,6 @@ std::unique_ptr SNA::load(const std::string &file_name // (perform a POP to get the PC) (void)file_name; - return nullptr; + + return result; }