User Tools

Site Tools


blog:pushbx:2026:1129_late_november_work

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 %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.
  • Add the option opt7_zz_no_capsfold (INSTALL CAPSFOLD, reverse).
  • Update symsnip with caps-folding function zz_match_symbol.

Symbolic support snippets

The symsnip repo again doesn't show up as updated in the hgweb overview repo list. It is unknown why this happens.

  • 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 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.
  • Update readme ecm file for r24, listing the /SC switch.

lDOS

tractest/convlist.pl

  • Fix NASM detection if a -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.

Symbolic support scripts

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.

You could leave a comment if you were logged in.
blog/pushbx/2026/1129_late_november_work.txt · Last modified: by ecm