mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-23 03:32:32 +00:00
2cc1a2684a
So a proper loading command is now known.
43 lines
749 B
C++
43 lines
749 B
C++
//
|
|
// Tape.hpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 25/12/2017.
|
|
// Copyright © 2017 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#ifndef StaticAnalyser_MSX_Tape_hpp
|
|
#define StaticAnalyser_MSX_Tape_hpp
|
|
|
|
#include "../../Storage/Tape/Tape.hpp"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace StaticAnalyser {
|
|
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);
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* StaticAnalyser_MSX_Tape_hpp */
|