| |
| — | blog:pushbx:2025:0217_lots_of_work_in_early_mid_february [2025-02-17 18:06:23 +0000 Feb Mon] (current) – created ecm |
|---|
| | ====== Lots of work in early mid February ====== |
| | |
| | |
| | **2025-02-16** |
| | |
| | ===== inicomp ===== |
| | |
| | Eric Auer [[https://www.bttr-software.de/forum/forum_entry.php?id=22318&page=0&category=all&order=last_answer|asked about the Snappy depacker of inicomp]], so I [[https://hg.pushbx.org/ecm/inicomp/rev/e5b129413c19|adapted it for the test file mode]] of inicomp. In this mode, testfile.asm is assembled to create a depacker application. However, it loads the entire packed file into memory and depacks it using the inicomp depacker protocol. So the available amount of memory (largest block allocatable by 21.48) must be large enough to hold the combined buffer. |
| | |
| | |
| | ===== lDOS boot ===== |
| | |
| | [[https://hg.pushbx.org/ecm/ldosboot/rev/fb07dd3288a4|Optimise the iniload relocator]]. If multiple chunks need to be relocated, then all but the last one must be full 64 KiB chunks. After relocating a full 64 KiB, the offset registers SI and DI are zero again so we needn't re-initialise them. Test cases for loading lCDebugX from lDebug included in the changeset message. This optimisation saves 4 bytes in the ever-important initial loader (the 1536 bytes at the start of the file that must at least be loaded for MS-DOS v6 and lDOS load protocols). |
| | |
| | |
| | ===== tractest convlist.pl ===== |
| | |
| | * In the detailed sections display, [[https://hg.pushbx.org/ecm/tractest/rev/06a71f053cee|support long module names]] even if a section doesn't have a group name. This helps with lDOS's new makefile that assembles everything from the repo root, so the module name and file name will both be longer. |
| | * [[https://hg.pushbx.org/ecm/tractest/rev/d00994471329|Support segment name aliases]]. This was useful during the intermediate revisions of lDOS in which DOSENTRY became an alias to BIOCODE, prior to actually splitting these two sections. |
| | |
| | |
| | ===== lDebug ===== |
| | |
| | Fix: Open .ELD and .SLD files (EXT command and Y command) as well as CO.ELD copy output files [[https://hg.pushbx.org/ecm/ldebug/rev/1d84d2e4a968|with the no-inherit flag in the debugger]], to avoid leaking file handles to the debuggee on 21.4B or 21.55. |
| | |
| | |
| | ===== callver ===== |
| | |
| | * [[https://hg.pushbx.org/ecm/callver/rev/572dc1fc6c7e|Split reportsmessage]] off kernel type |
| | * [[https://hg.pushbx.org/ecm/callver/rev/b3017fe895bf|Add more kernel types]]: |
| | * OEM 5Eh: RxDOS |
| | * OEM EEh: EDR-DOS |
| | * OEM 26h: lDOS |
| | * OEM DCh: DOS-C |
| | * OEM 00h and 21.4452 not supported: IBM-DOS |
| | * OEM 00h and 21.4452 supported: DR-DOS |
| | * OEM FDh (as before): FreeDOS |
| | * else: Other |
| | * [[https://hg.pushbx.org/ecm/callver/rev/58cf27ed3876|Display the OEM ID]] as a hexadecimal byte value |
| | |
| | |
| | ===== lDOS ===== |
| | |
| | As of Friday, the MS-DOS v4.01 based lMS-DOS is rebranded as lDOS. It now returns 26h as its OEM ID (21.3000) and v5.26 as the version number (both 21.30 and 21.3306). The default kernel filename is now ldos.com, with a compressed drload-kernel as ldospak.sys. The iniload signature now reads "lDOS" rather than "lDMS". There is a startup message added after the DOSDATA segment is initialised (before filling UPBs and DPBs) which reads "Starting small lDOS (Month) based on MS-DOS v4.01" (re-using the 21.33FF version string). |
| | |
| | Detailed list of changes: |
| | |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/2fa7cc9bfaff|Correct the end condition]] for the kernel command line processing. This is actually almost a no-op because it only affects things if the last command is empty. |
| | * In dos/msinit.nas [[https://hg.pushbx.org/ecm/msdos4/rev/bc89dde49b76|do not list new section directives]] if DONOBITS defined. This helps convlist.pl when creating a trace listing file for the sharer. |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/f744e2e1e930|Put all kernel and sharer sections into groups]]. This was reverted later because of the change to convlist.pl which made it obsolete. |
| | * In sharer [[https://hg.pushbx.org/ecm/msdos4/rev/3439c1b4bec1|avoid empty TEXT sections]]. |
| | * Add convmake.pl script [[https://hg.pushbx.org/ecm/msdos4/rev/f021a06d1a56|to help with converting makefiles]] |
| | * Use convmake.pl [[https://hg.pushbx.org/ecm/msdos4/rev/b2f697a9709f|to create a makefile template]] for building the kernel and the sharer |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/57c3d23c5950|Add shell scripts]] to run WarpLink and x2b2 using dosemu2. This converts forward slashes to backslashes, except if they occur at the start of a parameter. This happens to work with the inputs we provide. |
| | * In the WarpLink and x2b2 scripts [[https://hg.pushbx.org/ecm/msdos4/rev/057014b50d88|allow to specify dosemu executable name]] |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/d5eee597177f|Finish GNU make compatible makefile]] in repo root (edited from the template) |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/7da31d18d718|Add msdos and msbio message files]] to repo |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/364a86e7a38e|Comment out old makefiles' entries]] for the message files |
| | * In mak.sh [[https://hg.pushbx.org/ecm/msdos4/rev/34f3022c9018|call make and error out]] if it returns an error. Also, recognise the onlykern keyword. |
| | |
| | It turns out that dosemu2 correctly passes the error level of an -E command back to the host script that called dosemu. This is very convenient for our new makefile. |
| | |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/b42431bf1ba9|Add WarpLink response files]] for msbio.bin and share.exe building needed by new makefile. |
| | * In mak.sh [[https://hg.pushbx.org/ecm/msdos4/rev/16950bb6190c|copy the two binaries]] created by GNU make into the repo root. |
| | * In mak.sh [[https://hg.pushbx.org/ecm/msdos4/rev/440e4eb392d0|do not create command.tls trace listing file]] if called with onlykern keyword parameter. |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/50c1e348c4b1|Undo]] the changeset [[https://hg.pushbx.org/ecm/msdos4/rev/f744e2e1e930|adding groups to all sections]]. |
| | * In nasm.mac [[https://hg.pushbx.org/ecm/msdos4/rev/8900789667f6|temporarily define DOSENTRY as an alias]] to BIOCODE |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/ccc6fd5b361b|Replace some uses]] of BIOCODE by DOSENTRY |
| | * In dos/msinit.nas [[https://hg.pushbx.org/ecm/msdos4/rev/086206617958|only initialise first 128 bytes]] of init PSP. |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/8f2095e62c70|Fix 2F.0803 call to return correct first UPB segment]] rather than segment 70h |
| | * In msvolid.nas [[https://hg.pushbx.org/ecm/msdos4/rev/ce396e12a133|skip LFNs instead of matching them as volume labels]] |
| | * In dcodeseg.nas [[https://hg.pushbx.org/ecm/msdos4/rev/414a12fa2140|add DOSBIOCODE]] (an early addition to the DOSCODE segment ahead of the other BIOCODE users) |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/9514a5f3c5e4|The big change]] to address DOSENTRY with ds or es, rather than cs. Also adds the DOSENTRY define to msbio1.nas for use by convlist.pl so we can create trace listing files. Many users of DOSENTRY variables will now call the new biocode_get_ds/es_dosentry functions, and preserve their original ds or es on the stack. |
| | |
| | It seems that MS-DOS v5 chose to address what we call DOSENTRY (segment 70h) using DS throughout. This required changing things so the current UPB is addressed using ES:DI rather than DS:DI. Obviously this choice is valid but I think ours is just as good. |
| | |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/9650c1d7a008|Replace some more uses]] of BIOCODE by DOSENTRY |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/2f17c33767b6|Drop FLAGBITS variable]] no longer used |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/ad99a227c43f|Prepare ispatched function]] for msbio/msdisk.nas, [[https://hg.pushbx.org/ecm/msdos4/rev/d43f525aa5e8|as well as msbio/ms96tpi.nas]] |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/ae95ea91a535|Replace PURGE_96TPI patches]] by using ispatched function |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/7ff4e46cc349|Move BIOCODE section directives]] from msdos files into entryseg.nas |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/fc85487220a8|Include entryseg.nas]] in msbio1.nas |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/2698a91db15d|Comment out]] the ms96tpi PATCHTABLE (no longer used) |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/757f8b5ba44f|Add debug numbers output]] to sysconf.nas, commented out in a single spot. The callers use a macro that can be enabled by changing the single spot. |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/8fcfc32ae628|Split DOSENTRY and BIOCODE]]. This was relatively painless after the preparations of prior changesets. |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/7949c2d3d958|Prefer the configuration filename ldos.ini]] to config.sys (part of rebrand) |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/3ca8e29afb97|Implement the 2F.4A00 disk change notification callout]]. This was easy enough, but it turns out [[https://github.com/dosemu2/dosemu2/issues/2386|dosemu2 incorrectly interfered with this call]] when switching from the B: drive to A:. (Also, MS-DOS v5 sets DH as ''DL ^ 1'' so it may not work as intended for drives other than A: and B:. FreeDOS and lDOS set DH from the block device unit number from the old UPB instead.) |
| | * Add the minimal (5 entries) [[https://hg.pushbx.org/ecm/msdos4/rev/cbc5e3f1182a|Interrupt Restoration Table]] to 70h:100h. Initialise it. OLD13 variable now part of this IRT. |
| | * In the interrupt 19h handler [[https://hg.pushbx.org/ecm/msdos4/rev/09a0ec420248|use the entire IRT]]. |
| | * Fix sharer build with new makefile: The parent directory of the source file to build [[https://hg.pushbx.org/ecm/msdos4/rev/e52b03961880|must be included first]], or sharer gets the wrong message server include file. |
| | * In sharer's MCB walker [[https://hg.pushbx.org/ecm/msdos4/rev/846b6440beb7|check for a valid PSP]] by comparing the word at offset 0 to 20CDh (int 20h opcode) |
| | |
| | <blockquote>Both lDOS TSRs (RxANSI, lClock, example, KEEPHOOK, SEEKEXT, IDLEDPMS) |
| | and FreeDOS devload will create self-owned MCBs that do not contain |
| | a valid PSP. Avoid possibly corrupting memory on encountering them. |
| | The lDOS applications will behave this way for /J0 which is still the |
| | default. /J1 to /J4 will avoid the misleading MCB contents, at the |
| | cost of some memory and possibly legibility in memory listers.</blockquote> |
| | |
| | * In sharer's MCB walker call 2F.1261 to find first UMCB, and [[https://hg.pushbx.org/ecm/msdos4/rev/3556dbcf515f|continue to walk it]] even if the last LMCB has a 'Z' signature |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/60745dca5390|Rename kernel files]] to ldos.com, ldospak.sys |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/41bcec6d284c|Use lDOS signature]] rather than lDMS |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/581a177a5fbf|Set OEM number 26h]] for lDOS |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/5cf715a5730c|Add checks for alternative version number]] to most programs |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/d24be72f55a4|Add vdisk.asm check for alternative version number]] |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/de42e18baf43|Report lDOS kernel version]] as 5.26 |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/e7e947854d22|Update lDOS version string]] to 2025 February |
| | * In sharer [[https://hg.pushbx.org/ecm/msdos4/rev/0f8057e39030|support empty PHT]] |
| | * In sharer's MCB walker [[https://hg.pushbx.org/ecm/msdos4/rev/2064f79ca13e|add loop detection]] |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/b41be4548fc8|Default to LZSA2 compression method]] for kernel |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/b71e83f74e67|Add startup message]] |
| | * Fix ms96tpi.bas [[https://hg.pushbx.org/ecm/msdos4/rev/fc1db1b50f6c|function CHECKIO re-using CHECKFATRET]]. The latter now pops ES (used to address DOSENTRY) so the re-use became invalid. |
| | * Change ms96tpi_i13 [[https://hg.pushbx.org/ecm/msdos4/rev/dd671397eb1d|to use a far call to DOSENTRY:transfer_real13]] rather than juggling the stack to transfer to the address in DOSENTRY:REAL13 |
| | * [[https://hg.pushbx.org/ecm/msdos4/rev/c5a756d09dfb|Add amis.mac]] from tsr example repo |
| | * In sharer [[https://hg.pushbx.org/ecm/msdos4/rev/9eace73ca4b1|use an IISP entry header to support AMIS TSRs]] that may want to find the sharer's int 2Fh downlink |
| | |
| | I also added [[https://pushbx.org/ecm/web/#projects-ldos|a section on the lDOS kernel]] to the webbed page. |
| | |
| | |
| | {{tag>inicomp ldosboot convlist.pl ldebug callver ldos msdos msdos4}} |
| | |
| | |
| | ~~DISCUSSION~~ |
| |