2017-12-29 20:11:10 +00:00
|
|
|
//
|
|
|
|
// Tape.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 25/12/2017.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
2017-12-29 20:11:10 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef StaticAnalyser_MSX_Tape_hpp
|
|
|
|
#define StaticAnalyser_MSX_Tape_hpp
|
|
|
|
|
2018-01-25 02:48:44 +00:00
|
|
|
#include "../../../Storage/Tape/Tape.hpp"
|
2017-12-29 20:11:10 +00:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2018-01-25 02:48:44 +00:00
|
|
|
namespace Analyser {
|
|
|
|
namespace Static {
|
2017-12-29 20:11:10 +00:00
|
|
|
namespace MSX {
|
|
|
|
|
|
|
|
struct File {
|
|
|
|
std::string name;
|
|
|
|
enum Type {
|
|
|
|
Binary,
|
|
|
|
TokenisedBASIC,
|
|
|
|
ASCII
|
|
|
|
} type;
|
|
|
|
|
|
|
|
std::vector<uint8_t> data;
|
|
|
|
|
|
|
|
uint16_t starting_address; // Provided only for Type::Binary files.
|
|
|
|
uint16_t entry_address; // Provided only for Type::Binary files.
|
|
|
|
|
|
|
|
File(File &&rhs);
|
|
|
|
File();
|
|
|
|
};
|
|
|
|
|
|
|
|
std::vector<File> GetFiles(const std::shared_ptr<Storage::Tape::Tape> &tape);
|
|
|
|
|
2018-01-25 02:48:44 +00:00
|
|
|
}
|
2017-12-29 20:11:10 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* StaticAnalyser_MSX_Tape_hpp */
|