X86 Lds File
She couldn’t just remove the LDS . The entire linked list traversal depended on far pointers. But she could replace it.
That night, Eleanor poured a whiskey and thought about LDS . Born in 1978 with the 8086, mature in the 286’s protected mode, and already a zombie on the 386—kept alive only by backward compatibility. It was the programming equivalent of a rotary phone in a smartphone world. You could still use it. But you really, really shouldn’t. x86 lds
lds bx, [si] ; Load 32-bit pointer from address DS:SI into DS:BX The geophysicist had used it to chase a linked list of fault lines. Eleanor realized the bug: the code assumed SI pointed to a far pointer stored in the current data segment. But in protected mode, under a DOS extender, DS could change anytime a task switched. One moment DS pointed to low memory; the next, to a buffer in extended memory. She couldn’t just remove the LDS
And somewhere in a museum, a 386 motherboard smiled, its LDS instruction still perfectly capable of crashing any program that dared to wake it. That night, Eleanor poured a whiskey and thought about LDS
In the spring of 1992, Eleanor, a young and slightly reckless systems programmer, found herself hunched over a beige 386 DX/40. The machine groaned under MS-DOS 5.0, and in front of her was a nightmare: a core dump from a geological modeling program she’d inherited.
“It poisoned its own segment register,” Eleanor whispered. “Like a snake biting its tail.”
