Skip to content

Patch for use in the lDOS Master Control Program #184

@ecm-pushbx

Description

@ecm-pushbx

I uploaded three commits to https://github.com/ecm-pushbx/freecom/commits/ecm-mcp/

These are not intended for being merged with the main FreeCOM development necessarily, though they wouldn't hurt much.

In the first commit ecm-pushbx@0bf706b I merely added to the git ignore file.

The second commit ecm-pushbx@f64c559 is the main change. If the expected resource trailer isn't found below EOF, then it starts to scan for a skip marker in the first 8 KiB of the file. A skip marker may point to another skip marker, or to a resource trailer. (A skip marker with pointer 0, or two skip markers referring to one another, could create an infinite loop.)

The last commit is ecm-pushbx@ac7b2bd which generates assembly listing files from the .c source texts when building with gcc-ia16. I picked this change from FDOS/kernel#225 I didn't find a good spot to insert the convlist.pl command so this needs to be run manually, eg,

$ cat maktls.sh
#! /bin/bash

# Public Domain

echo === Creating command.tls
convlist.pl shell/command.map $(find -iname '*.lst') > command.tls

The skip markers are written by the lDOS comloader when building for the MCP, and by the MCP's initial loader so that the first skip marker may be stored within the first 8 KiB of the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions