RetroLinker
Linker for several 8-bit, 16-bit and 32-bit formats
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
COFF::COFFFormat::ZilogRelocation Class Reference

A relocation, as stored by the Z80/Z8000 backend. More...

#include <coff.h>

Inheritance diagram for COFF::COFFFormat::ZilogRelocation:
COFF::COFFFormat::Relocation

Public Member Functions

 ZilogRelocation (cpu cpu_type)
 
void Read (Linker::Reader &in)
 
offset_t GetAddress () override
 
size_t GetSize () override
 
void FillEntry (Dumper::Entry &entry) override
 

Public Attributes

cpu cpu_type
 
uint32_t address
 Address of the relocation (COFF name: r_vaddr)
 
uint32_t symbol_index
 Index of symbol in symbol table (COFF name: r_symndx)
 
uint32_t offset
 (COFF name: r_offset)
 
uint16_t type
 Type of relocation (COFF name: r_type)
 
uint16_t data
 unknown (COFF name: r_stuff)
 

Static Public Attributes

static const uint16_t R_Z80_IMM8 = 0x22
 
static const uint16_t R_Z80_IMM16 = 0x01
 
static const uint16_t R_Z80_IMM24 = 0x33
 
static const uint16_t R_Z80_IMM32 = 0x17
 
static const uint16_t R_Z80_OFF8 = 0x32
 
static const uint16_t R_Z80_JR = 0x02
 
static const uint16_t R_Z8K_IMM4L = 0x23
 
static const uint16_t R_Z8K_IMM4H = 0x24
 
static const uint16_t R_Z8K_DISP7 = 0x25
 
static const uint16_t R_Z8K_IMM8 = 0x22
 
static const uint16_t R_Z8K_IMM16 = 0x01
 
static const uint16_t R_Z8K_REL16 = 0x04
 
static const uint16_t R_Z8K_IMM32 = 0x11
 
static const uint16_t R_Z8K_JR = 0x02
 
static const uint16_t R_Z8K_CALLR = 0x05
 
static const uint16_t R_W65_ABS8 = 0x01
 
static const uint16_t R_W65_ABS16 = 0x02
 
static const uint16_t R_W65_ABS24 = 0x03
 
static const uint16_t R_W65_ABS8S8 = 0x04
 
static const uint16_t R_W65_ABS8S16 = 0x05
 
static const uint16_t R_W65_ABS16S8 = 0x06
 
static const uint16_t R_W65_ABS16S16 = 0x07
 
static const uint16_t R_W65_PCR8 = 0x08
 
static const uint16_t R_W65_PCR16 = 0x09
 
static const uint16_t R_W65_DP = 0x0A
 

Detailed Description

A relocation, as stored by the Z80/Z8000 backend.

Member Function Documentation

◆ FillEntry()

void COFFFormat::ZilogRelocation::FillEntry ( Dumper::Entry & entry)
overridevirtual

◆ GetAddress()

offset_t COFFFormat::ZilogRelocation::GetAddress ( )
overridevirtual

◆ GetSize()

size_t COFFFormat::ZilogRelocation::GetSize ( )
overridevirtual

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