Skip to content

Patch for use in the lDOS Master Control Program #184

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.

Activity

  1. ecm-pushbx commented on Jan 17, 2026

    @ecm-pushbx
    ContributorAuthor

    Note that to use convlist.pl here you should update it to the latest revision, https://hg.pushbx.org/ecm/tractest/rev/d1067fb4a0b8

  2. ecm-pushbx commented on Jan 17, 2026

    @ecm-pushbx
    ContributorAuthor

    Added another patch, ecm-pushbx@3fb35fa this one decouples the COMSPEC variable from the shell's use for reloading data from its own file. So COMSPEC can be set to point to clu.exe to work as expected, but have FreeCOM load messages and such from the ldosmcp.com file.

  3. ecm-pushbx commented on Aug 14, 2026

    @ecm-pushbx
    ContributorAuthor

    Update to this, using tkchia's new debugging listing to generate the .tls file: ecm-pushbx@4813d3f

    gcc.mak: update listing and relocation files generation
    References:

    FDOS/kernel#249

    https://codeberg.org/tkchia/gcc-ia16/issues/8

    I found that the patch in #172 is still needed, otherwise an invalid XMS move is detected by dosemu2 -D+9x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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