RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
pmode.h
1#ifndef PMODE_H
2#define PMODE_H
3
4#include "../common.h"
5#include "../linker/linker.h"
6#include "../linker/reader.h"
7#include "../linker/writer.h"
8
9/* TODO: unimplemented */
10
11namespace PMODE
12{
17 {
18 public:
19 void ReadFile(Linker::Reader& in) override;
20 void WriteFile(Linker::Writer& out) override;
21 /* TODO */
22
23 std::string GetDefaultExtension(Linker::Module& module, std::string filename) override;
24 };
25}
26
27#endif /* PMODE_H */
A helper class to collect sections into segments.
Definition linker.h:19
Encodes an object module file as a collection of sections, symbols and relocations.
Definition module.h:20
A class that provides a general interface to setting up generation for a format.
Definition format.h:56
A helper class, encapsulating functionality needed to import binary data.
Definition reader.h:16
A helper class, encapsulating functionality needed to export binary data.
Definition writer.h:15
PMODE/W linear executable format (https://github.com/amindlost/pmodew/blob/main/docs/pmw1fmt....
Definition pmode.h:17
std::string GetDefaultExtension(Linker::Module &module, std::string filename) override
Appends a default extension to the filename.
Definition pmode.cc:18
void WriteFile(Linker::Writer &out) override
Stores data in memory to file.
Definition pmode.cc:13
void ReadFile(Linker::Reader &in) override
Loads file into memory.
Definition pmode.cc:8