2016-09-11 21:09:00 +00:00
|
|
|
//
|
|
|
|
// File.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 10/09/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef File_hpp
|
|
|
|
#define File_hpp
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace StaticAnalyser {
|
|
|
|
namespace Commodore {
|
|
|
|
|
|
|
|
struct File {
|
2016-09-15 11:54:42 +00:00
|
|
|
File() : is_closed(false), is_locked(false) {}
|
|
|
|
|
2016-09-11 21:09:00 +00:00
|
|
|
std::wstring name;
|
|
|
|
std::vector<uint8_t> raw_name;
|
|
|
|
uint16_t starting_address;
|
|
|
|
uint16_t ending_address;
|
2016-09-15 11:54:42 +00:00
|
|
|
bool is_locked;
|
|
|
|
bool is_closed;
|
2016-09-11 21:09:00 +00:00
|
|
|
enum {
|
|
|
|
RelocatableProgram,
|
|
|
|
NonRelocatableProgram,
|
|
|
|
DataSequence,
|
2016-09-15 11:54:42 +00:00
|
|
|
User,
|
|
|
|
Relative
|
2016-09-11 21:09:00 +00:00
|
|
|
} type;
|
|
|
|
std::vector<uint8_t> data;
|
|
|
|
|
|
|
|
bool is_basic();
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* File_hpp */
|