====== Early mid November work ====== **2026-11-15** ===== Screen script ===== This repo contains a screenrc file that opens 15 windows with specific names and running various commands: * [[https://hg.pushbx.org/ecm/screen.scr/rev/d6ca243ed941|Initial commit]]. * [[https://hg.pushbx.org/ecm/screen.scr/rev/c04407a5e318|Add LICENSE file]] (Fair License). In addition to the changesets, I [[https://superuser.com/questions/1663606/why-does-history-s-wipe-my-command-history/1941475#1941475|contributed an answer to a superuser.com question]] on why ''history -s'' seemingly deleted the bash history in a bashrc file. I was about to ask a question about this when I found the Q&A that already solved this. I added my answer with more details on how it works and how to work around the problem. (This answer has been received negatively.) ===== lDOS boot ===== * In iniload, [[https://hg.pushbx.org/ecm/ldosboot/rev/2237d683f05a|run an int 13h function 00h reset after modifying the Diskette Parameter Table]]. [[https://github.com/the-grue/MOS86/blob/01676a374d2a3a59c337c8a6ef8bfbe3d0ca4f57/kernel/MBOOT.INC#L122|The PC-MOS source texts]] ([[https://github.com/roelandjansen/pcmos386v501/blob/77c6c94d2ff3e570deb49853c11987ac339e758d/SOURCES/src/kernel/MBOOT.INC#L122|alternative hyperlink]]) indicate that this may be required: "it turns out we have to change the disk parameter table and reset the drive in order for this to work from a power-on boot". Technically, [[https://hg.pushbx.org/ecm/ldosboot/file/2237d683f05a/iniload.asm#l2458|we do 4 attempts of every int 13h function 02h call]] (1 initial attempt and up to 3 retries), and before every retry we do call the reset function. So this may not be needed. But it doesn't cost much and is better for compatibility. ===== Symbolic support scripts ===== * [[https://hg.pushbx.org/ecm/symscr/rev/c5053ffc00ac|Add support for WarpLink extended map files]] to process.pl * [[https://hg.pushbx.org/ecm/symscr/rev/09f06dcf1ddc|Add --origin switch to explicitly set WarpLink extended map file origin]]. * [[https://hg.pushbx.org/ecm/symscr/rev/e70bff18d8bc|Do the length zero special case before adjusting with origin]]. This is one way to support creating symbol files for linked executables, however it is not very satisfactory because it produces fewer than 2000 labels for the debugger (DDebug) whereas the ''-f bin'' build's NASM map file produces more than 7000 labels. The next step is to process .tls trace listing files. This poses some problems: ''%macro'' definitions and disabled legs of ''%if'' constructs may appear to include labels that actually aren't emitted at all. Therefore, a script working on .tls files should employ some trickery to avoid writing labels that are not actually present. If a ''%warning'' or ''%note'' is emitted into the listing file, or any machine code hexdump, then we can know that the current block is being processed by the assembler. If there is an ''%if'' construct with any number of ''%elif'' blocks and an ''%else'' block, and none of the blocks are obviously being processed, then another trick can be used: Write any labels that are common to all of the blocks just processed. This will help some [[https://hg.pushbx.org/ecm/msdos4/file/c661c6316db2/src/INC/msgserv.nas#l432|in the lDOS message server code]] which contains ''%if'' constructs of the form: %if FAR label proc far %else label proc near %endif Note how a pure label definition won't emit any additional data to the listing file, so it cannot be detected as being processed that way. ===== The list ===== [[https://github.com/LoopZ/TheList/pull/123|A single Pull Request]], with a few changes: * INT 30 and INT 31 DOS uses sorted first. * MCB details. * Int 2Fh function AE01h incompatibilities and bugs. (Unfortunately there's news that development of the list is being delayed for the time being.) ===== FreeCOM ===== * [[https://github.com/FDOS/freecom/issues/194|An issue]] listing the MS-DOS APPEND incompatibility with FreeCOM because it doesn't provide the sysparse entrypoint. ===== SvarCOM ===== * [[https://github.com/SvarDOS/bugz/issues/6#issuecomment-6804628718|A comment]] on the lack of sysparse entrypoint. This was answered already with a patch that appparently provides the expected entrypoint. It is reported that MS-DOS APPEND works with this. {{tag>screen.scr ldosboot symscr list freecom svarcom stackexchange}} ~~DISCUSSION~~