blog:pushbx:2023:1119_mid_november_work
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | blog:pushbx:2023:1119_mid_november_work [2023-11-19 16:42:55 +0000 Nov Sun] (current) – created ecm | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Mid November work ====== | ||
| + | |||
| + | **2023-11-19** | ||
| + | |||
| + | This week I worked some on lDebug, its Extensions for lDebug, and on a few other projects. | ||
| + | |||
| + | |||
| + | ===== Adding the E. ===== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | |||
| + | ===== Web site update ===== | ||
| + | |||
| + | The section for seekext [[https:// | ||
| + | |||
| + | |||
| + | ===== AMIS multiplexer lister (amitsrs) ===== | ||
| + | |||
| + | The amitsrs program originates in Ralf Brown' | ||
| + | |||
| + | * When more than one hotkey is advertised, [[https:// | ||
| + | * Hotkey scancode [[https:// | ||
| + | * Unknown hotkey scancodes will not show up as " | ||
| + | |||
| + | |||
| + | ==== Port to 8086 assembly and ELD ==== | ||
| + | |||
| + | (I [[blog: | ||
| + | |||
| + | I also ported amitsrs to an ELD of the same name. This was at first a very close recreation of the original, except I did allow it to operate as a residently installed ELD to begin with. | ||
| + | |||
| + | Later, I replaced the simple check for a nonempty command line tail by parsing for specific keywords to select which lines to additionally display. This allows to select the second line (multiplex number, version, private entry point) or the hotkeys display or the interrupt list display. | ||
| + | |||
| + | |||
| + | ===== TSR changes ===== | ||
| + | |||
| + | ==== testhotk ==== | ||
| + | |||
| + | A new TSR, [[https:// | ||
| + | |||
| + | |||
| + | ==== BP process relocation change ==== | ||
| + | |||
| + | All TSRs were [[https:// | ||
| + | |||
| + | |||
| + | ==== KEEPHOOK section fix ==== | ||
| + | |||
| + | When KEEPHOOK was updated between 2023 March and 2023 May, a differing alignment directive presumably [[https:// | ||
| + | |||
| + | The most obvious tell, which actually made me notice something was wrong, was that KEEPHOOK would install into the LMA even though no /JU switch was present and enough UMA space was free. | ||
| + | |||
| + | I did an audit of all other TSRs and the same error was not present in any of them. | ||
| + | |||
| + | It seems that the patch went wrong because the end of the transient section had a '' | ||
| + | |||
| + | |||
| + | |||
| + | ===== lDebug ===== | ||
| + | |||
| + | ==== Path search ELD ==== | ||
| + | |||
| + | The path.eld uses the filename extension warning and guessing as well as the path search originally added to the debugger' | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | The path.eld [[https:// | ||
| + | |||
| + | The [[https:// | ||
| + | |||
| + | The WHILE buffer and swch1 variables [[https:// | ||
| + | |||
| + | The '' | ||
| + | |||
| + | ==== Commas before executable pathname ==== | ||
| + | |||
| + | MSDebug allows separators before the executable pathname that it accepts in its K and N commands, as well as on its command line. Compatibility in lDebug only extends to a single comma, however. | ||
| + | |||
| + | The K command already fully supported skipping a single comma, as the cmd4 dispatcher calls '' | ||
| + | |||
| + | The N command in MSDebug-compatible mode would not include a leading comma in the command line tail it writes. [[https:// | ||
| + | |||
| + | The init's command line tail invocation of the K command also did not skip a leading comma, which [[https:// | ||
| + | |||
| + | |||
| + | ==== dosdrive.eld ==== | ||
| + | |||
| + | This ELD [[https:// | ||
| + | |||
| + | |||
| + | ==== ldmem ==== | ||
| + | |||
| + | The eldstrict mode [[https:// | ||
| + | |||
| + | The common string " segment: " [[https:// | ||
| + | |||
| + | There is [[https:// | ||
| + | |||
| + | The SEG display originally re-used the section names from MEM, but [[https:// | ||
| + | |||
| + | ==== amitsrs ==== | ||
| + | |||
| + | This ELD was already described in an earlier section and in its own blog post. | ||
| + | |||
| + | |||
| + | ==== FAT12 boot read fix ==== | ||
| + | |||
| + | The FAT12 reader for EXT, Y, and BOOT DIR commands [[https:// | ||
| + | |||
| + | |||
| + | ==== extname.eld ==== | ||
| + | |||
| + | This ELD provides filename extension warnings and guessing for the EXT and Y commands. The known extensions exactly match those that will be guessed. They are .ELD and .XLD for the EXT command, and .SLD for the Y command. | ||
| + | |||
| + | This ELD is more complicated than path.eld in that it needs to parse the pathname in the same way as the EXT and Y commands do, including the expansion of the configuration path keywords. Furthermore, | ||
| + | |||
| + | |||
| + | ==== linfo.eld ==== | ||
| + | |||
| + | This ELD displays some information on files and processes loaded using the L command. | ||
| + | |||
| + | The command handler will detect L commands. When detected, it displays the program load name and sets up both a command inject handler to be run when the L command returns to the cmd3 command loop, as well as a puts multi-purpose handler. | ||
| + | |||
| + | The puts handler passes along any messages, but is used to detect output from the L command. Messages about hooking the DPMI entry are allowlisted. Any other message output is assumed to indicate an error in the L command. | ||
| + | |||
| + | After a successful L command or on an LINFO PROBE command, the ELD will probe the file referenced by the N/K program load name buffer. It will display its file size, whether it is an MZ executable with header, and if so then the header size and image size. It will also display the PSP segment and memory block size. | ||
| + | |||
| + | |||
| + | ==== Discard help messages in residently installed ELDs ==== | ||
| + | |||
| + | Most ELDs come with help messages. When the ELD can also be installed residently, frequently the help message would balloon the length of the resident data block without need. This has been fixed by moving the install code behind the data section and conditionally shortening the data block when installing. | ||
| + | |||
| + | The history.eld already had some code in place to do just the same. The set.eld actually retains uninitialised buffers so long that the conditional shortening code in its install is not used. For a lot of ELDs however, this change brought an optimisation of their resident ELD data block sizes. | ||
| + | |||
| + | |||
| + | ==== dosdir.eld ==== | ||
| + | |||
| + | The dosdir ELD was changed [[https:// | ||
| + | |||
| + | The ELD also gained the SORTDEBUG keyword which [[https:// | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | |||
| + | ==== bootdir.eld ==== | ||
| + | |||
| + | This ELD is a build option of dosdir.eld which will make it work (only) when bootloaded, using the debugger' | ||
| + | |||
| + | Most of the directory scanning is re-used from list.eld, with a re-initialisation when looking for the sorted files in order. The scanning is very wasteful, particularly for the sorted files. The subdirectory in which the search occurs is re-detected for every sorted file. And the entire directory is searched until the end, also for each sorted file. | ||
| + | |||
| + | Subsequent changes were added. One is [[https:// | ||
| + | |||
| + | The final change yet is for sorted files [[https:// | ||
| + | |||
| + | |||
| + | ==== ELD strict mode reloc only disables reloc-abs warnings ==== | ||
| + | |||
| + | [[blog: | ||
| + | |||
| + | {{tag> | ||
| + | |||
| + | |||
| + | ~~DISCUSSION~~ | ||
blog/pushbx/2023/1119_mid_november_work.txt · Last modified: by ecm
