RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
PCOS::CMDFormat::LoadBlock Class Reference
Inheritance diagram for PCOS::CMDFormat::LoadBlock:
PCOS::CMDFormat::MemoryBlock

Public Member Functions

uint16_t GetLength () const override
 The length of the block, not including the type and length fields.
void ReadFile (Linker::Reader &rd, uint16_t length) override
 Fills the contents of this object.
void WriteFile (Linker::Writer &wr) const override
 Writes the contents of the block to the file, including the type and length fields.
int GetDisplayOptions () const override
 Filters for display.
std::unique_ptr< Dumper::RegionMakeRegion (std::string name, offset_t offset, unsigned display_width) const override
 Creates a region for displaying the block contents.
void AddFields (Dumper::Region &region, const CMDFormat &module) const override
 Adds block specific fields.
Public Member Functions inherited from PCOS::CMDFormat::MemoryBlock
virtual void DumpContents (Dumper::Dumper &dump, offset_t file_offset, const CMDFormat &module) const
 Display block specific contents.
void Dump (Dumper::Dumper &dump, offset_t file_offset, const CMDFormat &module) const
 Displays the entire block.
 MemoryBlock (int type)

Public Attributes

uint32_t block_id
 The first 4 bytes of the block.
std::shared_ptr< Linker::Contentsimage
 The memory resident part of the block.
Public Attributes inherited from PCOS::CMDFormat::MemoryBlock
block_type type
 The type of the block.

Additional Inherited Members

Public Types inherited from PCOS::CMDFormat::MemoryBlock
enum  block_type : uint8_t { TYPE_LOAD = 3 , TYPE_OFFSET_RELOCATION = 4 , TYPE_SEGMENT_RELOCATION = 5 , TYPE_END = 6 }
 Every block has a type field. More...
Static Public Member Functions inherited from PCOS::CMDFormat::MemoryBlock
static std::unique_ptr< MemoryBlock > ReadFile (Linker::Reader &rd)
 Parses a block, including the type and length fields.

Member Function Documentation

◆ AddFields()

void CMDFormat::LoadBlock::AddFields ( Dumper::Region & region,
const CMDFormat & module ) const
overridevirtual

Adds block specific fields.

Reimplemented from PCOS::CMDFormat::MemoryBlock.

◆ GetDisplayOptions()

int CMDFormat::LoadBlock::GetDisplayOptions ( ) const
overridevirtual

Filters for display.

Reimplemented from PCOS::CMDFormat::MemoryBlock.

◆ GetLength()

uint16_t CMDFormat::LoadBlock::GetLength ( ) const
overridevirtual

The length of the block, not including the type and length fields.

Reimplemented from PCOS::CMDFormat::MemoryBlock.

◆ MakeRegion()

std::unique_ptr< Dumper::Region > CMDFormat::LoadBlock::MakeRegion ( std::string name,
offset_t offset,
unsigned display_width ) const
overridevirtual

Creates a region for displaying the block contents.

Reimplemented from PCOS::CMDFormat::MemoryBlock.

◆ ReadFile()

void CMDFormat::LoadBlock::ReadFile ( Linker::Reader & rd,
uint16_t length )
overridevirtual

Fills the contents of this object.

Parameters
lengthThe number of bytes in the block, not including the type and length fields

Reimplemented from PCOS::CMDFormat::MemoryBlock.

◆ WriteFile()

void CMDFormat::LoadBlock::WriteFile ( Linker::Writer & wr) const
overridevirtual

Writes the contents of the block to the file, including the type and length fields.

Reimplemented from PCOS::CMDFormat::MemoryBlock.


The documentation for this class was generated from the following files: