Movatterモバイル変換


[0]ホーム

URL:


Wayback Machine
61 captures
19 Nov 2002 - 06 Dec 2025
DecJANFeb
26
201920202021
success
fail
COLLECTED BY
TIMESTAMPS
loading
The Wayback Machine - https://web.archive.org/web/20200126182027/https://www.seasip.info/Cpm/prl.html
CP/M pages
Home ->CP/M-> PRL file format

PRL file format

A PRL file is a relocatable binary file, used by MP/M and CP/M Plus for various modules other than .COM files. The file format is also used forFID files on the Amstrad PCW.

There are several file formats which use versions of PRL: SPR (System PRL), RSP (Resident System Process). LINK-80 can also produce OVL (overlay) files,which have a PRL header but are not relocatable.

GSX drivers are in PRL format; so are Resident System Extensions (.RSX).

A PRL file comes in three parts:

PRL header

The PRL file starts with a 256-byte header:

DB0;Always 0DWbytes;Number of bytes in program image. This includes the;code and initialised data groups.DB0;Always 0DWbss;Number of bytes reserved for uninitialised data. ;Always 0 in an OVL file.DB0DWloadadd;Load address. Always 0 except in OVL files, because;the other files are relocatable.DB0DWcsbase;BIOS link. Always zero unless Link-80 was used with;the [B] option, in which case it is the base address;of the code group.DS0F4h;Unused

Code / data

The header is followed bybytes bytes of code and data. In PRL and RSP files, the code is assembled as if loaded at 0100h. In SPRfiles, it is assembled as if loaded at 0000h.

Relocation bitmap

Unless the file is an OVL file, there then follow ((bytes + 7) / 8) bytes of relocation bitmap (so one byte in the bitmap corresponds to 8 bytes in the file). Bit 7 corresponds to the lowest byte and bit 0 to the highest. So bit 7 of the first map byte corresponds tothe first byte after the PRL header.

If a bit is set in the map, a byte in the file is relocatable. For a PRL file whose header was loaded atxx00 hex, relocatable bytes should havexx added to them. In practice, the header is discarded; so an alternative formula is that if the first byte of code/data is atxx00h, thenxx-1 should be added to relocatable bytes.

For SPR files, which are based at 0 rather than 0100h, addxx + 1andxx respectively.

Return to archive listing


[8]ページ先頭

©2009-2026 Movatter.jp