Table of Contents
Late November work
2026-11-29
lDebug (experimental)
- Use dynamiclabel a bunch for equates that are the same as another label. There is a problem in the symbol file program: If the same "label" is defined in every leg of an
%if%elseconstruct which is in an active outer leg, the label takes on the value found in one of the legs. This is the wrong thing to do if the label is actually an equate. As a workaround, use dynamiclabel so that only the correct equate is used. - Add the option opt7_zz_no_capsfold (INSTALL CAPSFOLD, reverse).
- Update symsnip with caps-folding function zz_match_symbol.
Symbolic support snippets
- Uncapitalise data in zz_hash, to allow capsfolding later.
- Do capsfolding comparison in zz_match_symbol (unconditionally).
- Fix standalone build by including capitalise function.
The symsnip repo again doesn't show up as updated in the hgweb overview repo list. It is unknown why this happens.
WarpLink
- Add /S switch to WarpLink's own linker response file for caps-sensitive linking and map file.
- In get_hash caps-fold the input data to allow eventual caps-folding of symbol names.
- Add /SC switch for caps-preserving map file and caps-folding comparison. This replaces most occurrences of
cmpsbinstructions by function calls. There's three functions: compare_asciz which compares until a mismatch or NUL match, compare_length which works likerepe cmpsb, and compare_byte which works likecmpsb. The former two function call the latter. It is a singlecmpsbby default; if the /SC switch is specified then this instruction and aretnare patched into two NOP instructions. Querying the option byte in the function would require changing a segment register because both DS and ES may point somewhere else than the program's data segment. So the patch is easier. - Update readme ecm file for r24, listing the /SC switch.
lDOS
- Fix to check for DIR /P pagination if an entry has no date to show.
- Disable label-redef-late warning for NASM in nasm.mac macro file. (The lmacros1.mac already did this, but it isn't included by every NASM source text file.)
- In entryseg.nas enable listing before the include guard to get the desired
%ifstructure in the .tls trace listing file. - Optimise the shell some. This includes fewer segment overrides by setting up DS earlier/more, sharing some code to set the NUMBER_SUBST variable, replacing the callers of SetSize to calculate their desired sizes using wlcalc in a single immediate instead, using CLD and STI and HLT in some spots to harden and improve some code. Some OR are replaced by TEST (more idiomatic but same code size), some MOV are optimised to XCHG with AX, in one case a sequence of AND AX, 1 then NOT AX is replaced by AND AL, 1 (only the flags matter and NOT doesn't change any flags).
- In nasm.mac disable the uppercase directive.
- Enable caps-folding link and caps-preserving map file for the kernel link, using WarpLink's new /SC switch.
tractest/convlist.pl
- Fix NASM detection if a
-Ppre-include file emits a warning. This would break the invariant that the first line contain listing line number 1 (it shows line 0 instead) and that it contain no dump nor warning nor note. This would in turn break things like section change detection. This happened because lDOS's nasm.mac accidentally included a lone dot in the first line, which was treated as an orphan label with the corresponding warning.
Symbolic support scripts
- Simplify %00 handling, replace the %00 in the
matchsourceobject and fall through, rather than adding analabelourselves. - Add the equate field to alabel tuple type, and add
handlelabelorequatefunction (almost a no-op at this point). - Fix, the empty label needs equate = None not False.
- Process equate symbols that are equated to dollar sign or another label, with support for simple constant addition or subtraction. Equates are never local label base labels. However, both their own names and the names that they reference may be local labels that go through the usual expansion.
- In process.pl, assume origin zero if none specified.
- In processt.py, support letter S in hex dumps, which is used for
-f objsegment relocations. - Sort sections on base before display.
- Add the E. of ecm initials, and update attribution years, in process.pl and sendser.pl
Bump script
This script, bump.pl, is written specifically for the DOSCODE section/group of the lDOS kernel build. The section starts with a vstart of zero, like any usual OMF group, but its first 50h bytes are discarded early. Relocation starts at offset 50h.
This is needed because DOSCODE may be relocated into the HMA. If the DOSCODE program section started at linear 10_0000h and was addressed using segment FFFFh, then it would start at offset 10h (last paragraph of the ROM-BIOS is below this offset). However, it actually is addressed using segment FFFEh, adding 10h to the offset. Further, the VDISK header/BPB is at linear 10_0000h, and takes 20h bytes, so add 20h to the offset. Finally, the first HMCB is behind the VDISK header, adding another 10h bytes. This gives a total offset of 50h to address the actual start of the DOSCODE section.
The eventual symbolic lDebug base relocation support will kick in when relocation of a byte corresponding to a section start symbol is detected. This would never activate for DOSCODE as is because the relocation starts at offset 50h rather than offset 0. So with bump.pl, which is used like ./bump.pl msbio.sym --adjust 0x50 --section DOSCODETABLE > msbio2.sym, the DOSCODE section start is bumped to vstart 50h and all linear addresses based on it are lowered by 50h. This will allow the relocation to be detected.
IntList
All of these changes are on addlinks.pl, a companion program to The List's current revision of makehtml. It processes the makehtml output to add hyperlinks to all the supported references in the HTML files.
- Copy from intlist.pl file, no change.
- Open the <a name="..."> tag before a table's descriptor line. This requires a second pass through the HTML file, as the Table indicator may be on a subsequent nonempty line which cannot be detected in time using a simple line-by-line pass.
- Support reg-only hyperlinks in INTERRUP.LST entries.
- Fix, reset the find variables for every hyperlink. If a table hyperlink was followed by an interrupt with registers hyperlink on the same line, the registers would be ignored. Now the variables are reset correctly.
- Speed up processing by using separate arrays. This change reduced the time for a full list on our server from >8min to <100s. It uses one array per interrupt number, and one array each for tables, ports, memory, and far calls.
- Speed up more. This reduces the time to 70s. It uses separate arrays for every combination of an interrupt number and an AH register value. It is possible that an even greater speedup could be achieved by splitting more registers into perl hashes rather than relying on scanning the arrays for matching register hash values. But that would be more work and it isn't obvious how exactly to partition the data.
