5#include "../dumper/dumper.h"
6#include "../linker/image.h"
7#include "../linker/reader.h"
8#include "../linker/segment_manager.h"
9#include "../linker/writer.h"
133 static const int MODE_CPU_6502 = 0x0000;
134 static const int MODE_CPU_65C02 = 0x0010;
135 static const int MODE_CPU_65SC02 = 0x0020;
136 static const int MODE_CPU_65CE02 = 0x0030;
137 static const int MODE_CPU_NMOS = 0x0040;
138 static const int MODE_CPU_65816 = 0x0050;
209 offset_t
ReadUnsigned(
const std::shared_ptr<Linker::Reader>& rd)
const;
211 void WriteWord(
const std::shared_ptr<Linker::Writer>& wr, offset_t value)
const;
213 void ReadFile(
const std::shared_ptr<Linker::Reader>& rd);
214 void CalculateValues();
215 void WriteFile(
const std::shared_ptr<Linker::Writer>& wr)
const;
220 std::vector<std::unique_ptr<Module>> modules;
223 offset_t GetModuleCount();
224 std::unique_ptr<O65Format::Module>& GetModule(offset_t index);
225 std::unique_ptr<O65Format::Module>& AddModule();
232 void Clear()
override;
234 void ReadFile(
const std::shared_ptr<Linker::Reader>& rd)
override;
236 void CalculateValues() ;
237 offset_t
WriteFile(
const std::shared_ptr<Linker::Writer>& wr)
const override;
An abstract interface that separates structure and presentation of the data inside a file.
Definition dumper.h:1009
Encodes an object module file as a collection of sections, symbols and relocations.
Definition module.h:24