CP/M and MS-DOS COM executable linker.
To use this package, run the following command in your project's root directory:
Put the following dependency into your project's dependences section:
l80 is a linker for CP/M and MS-DOS
It reads in object files and libraries created by
and produces executable CP/M-80 binaries from them.
There are not (yet) any assemblers or compilers that
produce 8086 object code for
l80. But when such programs
l80 will already be able to handle them.
usage: l80 binary file1.obj [file2.obj ...]
All object files must end in
.com extension will automatically be appended to
l80 uses the most simple object format I could devise.
Object files are comprised of control codes and data. There are three control codes:
00: The following byte is literal data.
01: The following bytes are a symbol declaration.
02: The following bytes are a symbol reference.
l80 uses two passes to generate the final execuatable
binary. The first pass writes all object files and libraries
into a single buffer and then collects all the symbol
declarations and calculates the address of each symbol. The
second pass writes out the executable, replacing references
with the addresses calculated during the first pass.
Libraries are simply collections of object files. They can be created with the ar80 utility.
l80 does not recognize nor remove the code of unused
symbols. Doing so is planned.
The order of the object files and libraries can be very important.
Probably lots. Test and let me know.
ISC License. See
LICENSE for details.
l80 is in no way related to the linker of the same
name produced by Microsoft, also targeting CP/M-80.
That one uses a very different file format.
- Registered by Brian Callahan
- 1.1.0 released a year ago
- Copyright © 2021, Brian Callahan