| |
| — | blog:pushbx:2026:0322_late_mid_march_work_on_ldebug_c [2026-03-22 16:57:58 +0000 Mar Sun] (current) – created ecm |
|---|
| | ====== Late mid March work on lDebug &c ====== |
| | |
| | **2026-03-22** |
| | |
| | |
| | ===== WarpLink ===== |
| | |
| | [[https://hg.pushbx.org/ecm/warplink/rev/0d0a5864aa25|Emit a THEADR]] (Translator Header Record) to the wllist object file, to conform to the specs and not use a stale filename in the Module column of the .map file segpart list. [[https://www.azillionmonkeys.com/qed/Omfg.pdf|Reference to the OMF guide]] is in the changeset message. |
| | |
| | |
| | ===== tractest ===== |
| | |
| | * convlist.pl and traclist.pl: [[https://hg.pushbx.org/ecm/tractest/rev/63fce3a2dc18|Drop useless $replacebool variable]] from expandtabs function. |
| | * convlist.pl: [[https://hg.pushbx.org/ecm/tractest/rev/5e176d8e458f|Skip Symbol Table suffix]] of TASM listing file. |
| | |
| | |
| | ===== LZEXE ===== |
| | |
| | [[https://hg.pushbx.org/ecm/lzexe/rev/87321b2acd99|Update dosemu2 command]] to not write a logfile. Reference: https://github.com/dosemu2/dosemu2/discussions/2800 |
| | |
| | |
| | ===== inicomp ===== |
| | |
| | All changes concern the test program, which tests, counts, and benchmarks the decompression. |
| | |
| | * Allow [[https://hg.pushbx.org/ecm/inicomp/rev/16025498479b|to append the uncompressed payload for comparison]], at the end of the executable file. |
| | * Add option [[https://hg.pushbx.org/ecm/inicomp/rev/b1ddd2dabad6|to reload compressed payload from XMS memory]] for repeated decompression. |
| | * Add option [[https://hg.pushbx.org/ecm/inicomp/rev/093e932514b1|to reload compressed payload from the executable file]] too. (If both compressed and uncompressed payload are appended, the uncompressed one comes first.) |
| | * [[https://hg.pushbx.org/ecm/inicomp/rev/4872b62b68c3|Allow both XMS and file reload]], preferring XMS if available. This is useful because the qemu test currently doesn't load an XMM so XMS isn't available to it. |
| | |
| | With both the compressed and uncompressed payloads stored elsewhere, even lDDebugX LZSA2 can run the "double compressed" test. |
| | |
| | |
| | ===== lmacros ===== |
| | |
| | I listed two parts of lmacros, numdef and lframe, as examples [[https://stackoverflow.com/questions/79911355/is-there-any-way-to-automatically-undef-what-was-earlier-defined/79911527#79911527|in a stackoverflow answer]] about operating on smacros whose names are given as mmacro parameters. |
| | |
| | Due to this listing, I found a bug in the lframe variable macros. This is [[https://hg.pushbx.org/ecm/lmacros/rev/de53a9686fad|fixed by wrapping the prior variable content in curly braces]]. |
| | |
| | |
| | ===== lDebug ===== |
| | |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/adcb6aa1306e?revcount=120|Create the makefile .tls file]] with listing files in link order. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/d3b40db2700b|Add a script to run the heatshrink packer]], handling the loops and file selection to find the best parameters. |
| | * Use heatshrink script [[https://hg.pushbx.org/ecm/ldebug/rev/2f1a641f4bdc|to compress help pages]]. |
| | * Use heatshrink script [[https://hg.pushbx.org/ecm/ldebug/rev/c1c9f2e00dae|to compress inicomp payload]]. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/1887023e41cf|Add external help targets]] to makefile. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/c7412908b0fd|Pass along variables]] for LZEXEDAT and HEATSHRINK help compression commands to use. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/5822fbb7ae29|Pass optional help compression switches]] in option files. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/adfd61426796|Add DEPACKOPTIONS variable]] for assembler commands. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/1fabc23b9fe1|Store DEPACKOPTIONS variable]] to a file. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/ca955ba93262|Add NASM -I include path for the .txt directory]] (external help, lives in a tmp subdirectory). |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/784b99eae7fe|Use make to build the external help files]]. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/b2bd28eb2fee|Move size check loop for external help]] under the conditional for maximum size. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/3e15d28b2761|Add optionde (stored depack options file) prerequisite]] to init.obj and lineio.obj |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/a62e803dfe9f|Store makefile-generated .big, .map, and .tls files]] with an "l" suffix (for "linker"). |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/d2ae80e1d614|Add variable to mak.sh to use makefile]] for building the .big image. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/302ab9aac2f1|Pass the BUILDNAME and BUILDOPTIONS variables to make invocation]] that builds help pages. |
| | * Add label and extern directives [[https://hg.pushbx.org/ecm/ldebug/rev/738cd6e3bd52|to enable assembling the debugger with compressed external help]] from the makefile. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/8a857fdcde33|Use the uncompressed bootdisc help page]] for _LINK_COMPAT build too, to identicalise. (The page is actually so small that it grows from trying to compress it.) |
| | * Pass the NASM, CONVLIST, LZEXEDAT, and HEATSHRINK [[https://hg.pushbx.org/ecm/ldebug/rev/cd2986fa8d3e|variables from make's environment]] to the makefile. Export NASM, DOSEMU, and HEATSHRINK in mak.sh |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/a1884ab35bf1|Do not use the makefile itself as a prerequisite]] to linking the .big file. |
| | * Add help files [[https://hg.pushbx.org/ecm/ldebug/rev/df5bf9cf492a|as a prerequisite to building msg.obj]], and pass all variables to all make invocations. This fixes a problem observed where the .big make call would incorrectly recreate the help files. I listed this revision [[https://stackoverflow.com/questions/79909549/how-to-add-one-independent-makefile-target-as-a-dependency-for-another-with-re|in a stackoverflow self-answer]]. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/0d7635cb3cee|Pass revision IDs to makefile build of msg.obj]], passing them as variables to a small revision assembly language file that stringifies the variables and generates a macro file. The msg.asm source text file includes this macro file. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/fa1d8d935cb5|Update ?L help page attribution year]] to 2026 (from 2024!). |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/2795ea13705b|Enable the lzexedat help packer's -l option]] by default. (Nothing to do with the makefile, just an oversight.) |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/63a40f5f8316|Add switches /UR (revision) and /UL (license)]]. These re-use the data stack segment, message segment, and code segment already set up at the time of command line parsing, to depack the license help page. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/2fd18dd06f32|Enable building with _MESSAGESEGMENT=0]], as stated in the changeset message this also requires a smaller ELD data area to avoid overflowing 64 KiB for the data entry stack segment. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/a1de93969817|Allow to pass VERSIONOPTIONS and LINKOPTIONS]] from make's environment. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/456cd9b570a5|Allow building with _LINK and _MESSAGESEGMENT=0]] |
| | * Identicalise init.asm for _MESSAGESEGMENT=0 builds, by forcing /Y= (data area) [[https://hg.pushbx.org/ecm/ldebug/rev/d2a0577849cb|maximum size number to 5 digits]] even if it is < 10000 Bytes. |
| | * In manual section buildingcomponents [[https://hg.pushbx.org/ecm/ldebug/rev/ab74fddd6118|list GNU make and convlist.pl]] |
| | * In manual [[https://hg.pushbx.org/ecm/ldebug/rev/1557b5393532|update news-r11 and add WarpLink]] as a component for building. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/427df71fecd5|Add many required prerequisites]] to the makefile. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/f82f942fe328|Move option file updates out of the makefile]]. This allows running make without the options and it will use the last cached options. Done on [[https://stackoverflow.com/questions/79909549/how-to-add-one-independent-makefile-target-as-a-dependency-for-another-with-re/79909724#79909724|the suggestion from a stackoverflow user]]. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/3fe32d4135d5|Don't update the optionlz.dat or optionhs.dat files]] if not building with this external compressed help type. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/4a217a122f6b|Cache the external help target]] in a file, to avoid having to specify it to every make invocation. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/70edffb60e1e|Cache build name variable]] in a file. This allows to run mak.sh with use_build_make=1 once, then run just ''make'' to rebuild the most recently built .big image. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/019755a361f9|Fix a double dot]] in the .bi2 filename. |
| | * In makefile [[https://hg.pushbx.org/ecm/ldebug/rev/b3ed50f2c4a0|use the "debug" build name by default]] rather than "ddebugx". |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/c864e9d46956|Enable _LINK_COMPAT]] by default. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/a9d9d4ce466a|Use the new inicomp revision]] with the uncompressed payload appended rather than in the image. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/3a07e39f516f|Rename amis.mac]] to all-uncaps. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/d73a569ea5d2|Add the use_build_make=0 line]] to cfg.sh |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/2f26a9428fcc#l1.5|Allow using XMS]] for decompression test program compressed payload. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/3d1f3a3fbd60|Allow using file]] for decompression test program compressed payload. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/3349bb1b2f7d|Add use_build_decomp_test_file variable]] to the variables setup, forgotten in prior changeset. |
| | * Allow test program [[https://hg.pushbx.org/ecm/ldebug/rev/9978df0677c1|to use either XMS or file]] to reload compressed payload, if both options are enabled. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/f1f92ed9d492|Add new test program options]] to cfg.sh, both =1 by default. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/fe794c7e4333|Merge link branch]] into default branch. |
| | * Update manual [[https://hg.pushbx.org/ecm/ldebug/rev/8873d4603e9a|list of NASM versions]]. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/c347c7567146|Point old NASM bugzilla links to mirrored pages]] on the pushbx.org server. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/789f4f5d8e34|Add manual section buildscriptoptions]]. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/f2f565a65027|Add manual section buildscriptoptions-undocumented]]. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/79301fe1f61b|Mention in manual defaults are in cfg.sh]] |
| | * fptostr.asm: [[https://hg.pushbx.org/ecm/ldebug/rev/100d41d5314c|Fix assembling with new NASM revision]] (755593...), 2-operand ''fmulp'' not supported in this revision of the assembler. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/a20515ff9e24|Initial commit]] of eld/makefile |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/75e2e634a7f6|Add many dependencies]] to eld/makefile |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/32c4f5c80071|Add use_build_eld_make variable]] to eld/mak.sh to use make instead. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/beaae2628f53|Add manual section eldbuildscriptopions]]. |
| | * Add [[https://hg.pushbx.org/ecm/ldebug/rev/5fd496a0cb0e|the optional maximumwindowsize parameter]] to heatshrink script. |
| | * In eld/makone.sh [[https://hg.pushbx.org/ecm/ldebug/rev/3ea3ff543f96|use the heatshrink script to pack extpak's library image]]. Best combination is -w 12 -l 5, same as what we hardcoded prior to this. |
| | * In heatshrink script [[https://hg.pushbx.org/ecm/ldebug/rev/44b4214d7dbf|delete the temporary files]] at the end of the run. |
| | * Note that [[https://hg.pushbx.org/ecm/ldebug/rev/440deacb46a5|the eld/cfg.sh heatshrink parameters]] are no longer used. |
| | * [[https://hg.pushbx.org/ecm/ldebug/rev/d05cca1fb05a|Rename packlib files]] to packlibe (ELD) and packlibx (XLD). This change is so that building packlibe and packlibx using the heatshrink script won't use the same directory, which isn't much of a problem but neater this way. |
| | |
| | |
| | ==== Duplicate builds ==== |
| | |
| | It turns out that by updating the link branch and not the default branch, [[https://hg.pushbx.org/ecm/wwwecm.scr/file/046dcf4c22e0/update-dl-wwwecm|the update dl wwwecm script]] detected that there were incoming changesets to the ldebug, lddebug, and lcdebug repos. However, it didn't **update** to these revisions, instead repeatedly building the latest default branch revision. |
| | |
| | I deleted the tmp subdirectories and the compressed debugger executables from these builds, then packed them into [[https://pushbx.org/ecm/download/old/202603-duplicate-ldebug.tlz|the 202603-duplicate-ldebug.tlz file]] (6.6 MiB). After that I deleted the builds from 2026-03-10 to 2026-03-19 inclusive. (2026-03-08 is exactly equivalent except for version/date numbers and some revision ID changes, such as inicomp.) |
| | |
| | {{tag>warplink tractest convlist.pl traclist.pl lzexe inicomp lmacros ldebug wwwecm.scr}} |
| | |
| | |
| | ~~DISCUSSION~~ |
| |