2016-08-27 13:42:51 -04:00
|
|
|
//
|
|
|
|
// Tape.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 24/08/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef StaticAnalyser_Commodore_Tape_hpp
|
|
|
|
#define StaticAnalyser_Commodore_Tape_hpp
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
#include "../StaticAnalyser.hpp"
|
|
|
|
|
|
|
|
namespace StaticAnalyser {
|
|
|
|
namespace Commodore {
|
|
|
|
|
|
|
|
struct File {
|
2016-09-06 08:49:32 -04:00
|
|
|
std::wstring name;
|
|
|
|
std::vector<uint8_t> raw_name;
|
2016-08-27 13:42:51 -04:00
|
|
|
uint16_t starting_address;
|
|
|
|
uint16_t ending_address;
|
|
|
|
enum {
|
2016-09-07 07:34:48 -04:00
|
|
|
RelocatableProgram,
|
|
|
|
NonRelocatableProgram,
|
|
|
|
DataSequence,
|
|
|
|
} type;
|
2016-08-27 13:42:51 -04:00
|
|
|
std::vector<uint8_t> data;
|
|
|
|
};
|
|
|
|
|
2016-09-06 06:39:40 -04:00
|
|
|
std::list<File> GetFiles(const std::shared_ptr<Storage::Tape::Tape> &tape);
|
|
|
|
|
2016-08-27 13:42:51 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif /* Tape_hpp */
|