User Tools

Site Tools


blog:pushbx:2025:1216_early_mid_december_work_on_the_mcp
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


—blog:pushbx:2025:1216_early_mid_december_work_on_the_mcp [2025-12-16 11:30:31 +0000 Dec Tue] (current) – created ecm
Line 1: Line 1:
 +====== Early mid December work on the MCP ======
 +
 +**2025-12-14**
 +
 +
 +===== lDOS boot (experimental) =====
 +
 +[[https://hg.pushbx.org/ecm/ldosboot.exp/rev/3dbee31cf20d|Put the payload label into the part that's replaced by _INILOAD_PAYLOAD_INCLUDE]]. This is to prepare for additional signatures to be included before the payload, possibly for use by patchini/patldos to find additional lCFG blocks.
 +
 +
 +===== MCP =====
 +
 +  * [[https://hg.pushbx.org/ecm/mcp/rev/954b1c276d78|Adjust for the lDOS boot change]], put payload label into iniloadi.asm file.
 +  * [[https://hg.pushbx.org/ecm/mcp/rev/20d41ab60752|Add lzexe scripts]] from msdos4 repo.
 +  * [[https://hg.pushbx.org/ecm/mcp/rev/df7c37a2c677|Build the lDOS comloader]]. Add it to the second payload.
 +  * iniloadi.asm: [[https://hg.pushbx.org/ecm/mcp/rev/0cc22e07560f|Fix missing branch for CHOOSE DEBUG]] on the command line.
 +  * [[https://hg.pushbx.org/ecm/mcp/rev/db1a91d4c6d2|Add makinst.sh from msdos4 repo]]. Set boot name to LDOSMCP.COM instead.
 +  * [[https://hg.pushbx.org/ecm/mcp/rev/b5e1bf2f392f|Append extlib.eld to the MCP executable]].
 +  * [[https://hg.pushbx.org/ecm/mcp/rev/2ed5d7ff826e|Use MCP build of lDebug]] instead of the plain lCDebugX build. In particular this allows to use a specific startup script name, LDOSMCP.SLD, instead of the one shared by traditional lCDebug.
 +  * Add gather.sh script to generate sources.7z and [[https://hg.pushbx.org/ecm/mcp/rev/1bc133ef08ea|build ldosmcpz.com with the 7z ball]] between the initial loader stage and the extlib ELD.
 +  * [[https://hg.pushbx.org/ecm/mcp/rev/e144dcf6f952|Avoid creating the empty file]] (empty.dat) in mak.sh script, as it is no longer used.
 +
 +
 +===== lDOS kernel =====
 +
 +  * [[https://hg.pushbx.org/ecm/msdos4/rev/6e48980ada20|Add _MCP option to comloader]]. This allows to run the debugger by specifying no command line or the comloader command DEBUG. It is expected that the debugger image lives behind the PSP already, is entered at PSP:256 + 64, and will want the comloader's original stack preserved.
 +  * In ldos.ini device loader, [[https://hg.pushbx.org/ecm/msdos4/rev/e41abbfa8efe|check for an MZ executable header and calculate the device image size]] from it to allow loading the MCP as a device more readily (even ldosmcpz.com with 16 MB file size).
 +
 +**ETA**:
 +
 +  * [[https://hg.pushbx.org/ecm/msdos4/rev/05df7843dbe2|Zero bl for int 15h function 4100h call]] in mscon.nas, this [[https://fd.lod.bz/rbil/interrup/bios/1541.html|specifies a timeout value]] to the function. MS-DOS v5.00 and MS-DOS v7.10 do this, and a comment in the MS-DOS v4.01 sources already suggested setting bl to zero (and bh to 3, dx to 60h).
 +  * [[https://hg.pushbx.org/ecm/msdos4/rev/746c18531dcc|Fix a typo in ksection.txt]]
 +
 +
 +===== lDebug =====
 +
 +  * In manual section cmdyconfigpathes [[https://hg.pushbx.org/ecm/ldebug/rev/169923e1194f|link to eld-config]].
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/f0fe45ea02ec|Add code link for init_bootcmd function]].
 +  * extname.asm:
 +    * [[https://hg.pushbx.org/ecm/ldebug/rev/065085227568|Display nothing found name]].
 +    * [[https://hg.pushbx.org/ecm/ldebug/rev/7b15d70ff63a|Add a nothing lib string]] to the display nothing found.
 +    * [[https://hg.pushbx.org/ecm/ldebug/rev/f148e8a6e5ab|Add library scan for missing ELDs]].
 +    * [[https://hg.pushbx.org/ecm/ldebug/rev/d666d363dca6|Add DEBUGLIB option to allow enabling the debugging output]] (display nothing found name), now disabled by default.
 +    * [[https://hg.pushbx.org/ecm/ldebug/rev/bfbfa6b6b7f4|Add _LIBSCAN define]] to allow disabling library scan code.
 +    * Fix, [[https://hg.pushbx.org/ecm/ldebug/rev/7588d64d87de|set nothingsp before any branch to notfound_invalid]]. On lCDebugX this could corrupt memory within the data entry stack segment, for example the areas table.
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/41786d08d146|Add _MCP define to select the startup script name]] for MCP debugger.
 +  * In eldapend.c, [[https://hg.pushbx.org/ecm/ldebug/rev/af1a58e46f62|align the ELD payload to a paragraph boundary]]. (This incorrectly states that it aligns the ELDTAIL header. As ELDs usually are 16-byte aligned in their size, the ELDTAIL header will happen to be aligned too, but this is incidental.)
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/6d94863b9c05|Add boot_init_findname and initialise it in boot init code]]. Copies most of the findname code [[https://hg.pushbx.org/ecm/ldosboot.exp/file/3dbee31cf20d/testpl.asm#l668|from lDOS boot test payload (testpl.asm)]].
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/2f4321d368c5|Add two data links for device mode debugger]], for the quittable registers copy and device header address variable.
 +  * extname.asm: [[https://hg.pushbx.org/ecm/ldebug/rev/0e761b57977b|Add NAMELIB0 signature to after the ELD instance header]] so that another ELD can tell where the nothing library buffer lives.
 +  * enamelib.asm: [[https://hg.pushbx.org/ecm/ldebug/rev/5b00840ca3a9|New Extension for lDebug to set the extname.eld library]] from load file. This is for the MCP which wants to search its own executable for ELDs not found otherwise. At this point there was a problem: Loading the two ELDs (extname and enamelib) to set the library string to the executable pathname requires already knowing where to find the two ELDs, ie knowing the executable pathname already. But if it is known then the enamelib.eld is of no use!
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/2c4dbf7eb182|Update the manual section rcref-0E]] with the return codes used as yet by enamelib.eld
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/9f7fd372a2f1|Do not force _CONFIG disabled]] for a boot-only build.
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/ff94692a1a16|Allow an empty pathname in IF EXISTS Y command]], treating it as non-existing. This can be entered either using double quote marks, or if the upcoming ::EXECUTABLE:: keyword refers to an empty string.
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/73fea4362300|Add the ::EXECUTABLE:: keyword]]. Unlike ::CONFIG:: and ::SCRIPTS:: this doesn't specify a prefix to a subsequent filename, rather it reads the entire pathname from the init_executable_pathname variable and treats anything after the keyword as a command line tail. Adds init code to find the executable pathname from enamelib.eld.
 +  * enamelib.asm: If the init_executable_pathname is supported and not empty, [[https://hg.pushbx.org/ecm/ldebug/rev/7f61066915c3|use its content for the extname.eld library string]].
 +
 +**ETA**:
 +
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/ba9bcdacf398|In rcref-0E document RC 0E7Bh for enamelib.eld]].
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/999075f21815|Fix build of enamelib.eld]], asciz mmacro typo.
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/97802856194d|Another fix to the build of enamelib.eld]], unmarked relocations.
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/d90a6618c006|Also return with error and RC 0E7Bh]] if enamelib.eld finds that the init_executable_pathname.end pointer points below the variable.
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/3b4221a2a140|Add RUN TRUENAME mode]] to enamelib.eld
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/d04707776396|Add InDOS checks]] to enamelib.eld, although it cannot occur because the ELD is transient only (requiring InDOS to load).
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/0d8033bc4ab6|Add RC 0E7Ch and 0E7Dh to the rcref-0E manual section]] (enamelib.eld truename related).
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/a26cc36362f0|Add CHG section to yy_common_parse_name_bx_buffer protocol comment]].
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/19db291ab63d|Add RUN YNAME mode]] to enamelib.eld
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/643b7605fc60|Do not hardcode nothinglib size]] in a different spot in extname.asm
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/406f6fe13f77|Document eld-fdbplace, eld-enamelib, and expand eld-extname description]].
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/733aa8267d99|Update news-r10]] with the rcref manual section, RC reassignment patches, and yy ::EXECUTABLE:: keyword.
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/a755067ad557|Align the ELD1TAIL trailer]] in eldapend.c even if the ELD's size is not aligned.
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/fdb3dab86210|Shorten status message]] of eldapend.
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/ad15987cb2da|Truncate extpak.eld after the paragraph alignment]]. This makes the file size aligned.
 +  * [[https://hg.pushbx.org/ecm/ldebug/rev/30b0a2449108|Update news-r10]] with eldapend alignment of ELD and ELD1TAIL.
 +
 +==== MCP scripting ====
 +
 +The MCP startup script may now use the following commands:
 +
 +  * ''IF EXISTS Y ::EXECUTABLE:: THEN''
 +  * ''EXT ::EXECUTABLE:: EXTNAME.ELD INSTALL''
 +  * ''EXTNAME LIB SET ldp/ldosmcp.com'' (as a fallback if no name was detected)
 +  * ''EXTNAME WARNEXT OFF''
 +  * ''EXT ::EXECUTABLE:: ENAMELIB.ELD RUN''
 +  * ''EXTNAME WARNEXT ON''
 +
 +After running this script, a simple EXT command such as ''EXT X'' will be able to load from the MCP executable's embedded ELD library if no x.eld or x.xld is found.
 +
 +{{tag>mcp ldosboot ldosboot.exp ldos msdos4 ldebug eld}}
 +
 +
 +~~DISCUSSION~~
  
blog/pushbx/2025/1216_early_mid_december_work_on_the_mcp.txt · Last modified: by ecm