2026-11-29
%if %else construct 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.The symsnip repo again doesn't show up as updated in the hgweb overview repo list. It is unknown why this happens.
cmpsb instructions by function calls. There's three functions: compare_asciz which compares until a mismatch or NUL match, compare_length which works like repe cmpsb, and compare_byte which works like cmpsb. The former two function call the latter. It is a single cmpsb by default; if the /SC switch is specified then this instruction and a retn are 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.%if structure in the .tls trace listing file.-P pre-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.matchsource object and fall through, rather than adding an alabel ourselves.handlelabelorequate function (almost a no-op at this point).-f obj segment relocations.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.
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.