Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Using overlays to hide initialization code (Developers)

posted by bretjohn Homepage E-mail, Rio Rancho, NM, 06.08.2026, 23:14

> TSRs and device drivers have a simple approach to this - just put the
> initialization code at the end, and then use that memory for other storage
> or return it to the system.

For TSR's, I use a method I learned from ECM. I move the running program (including initialization code) to the top of conventional memory, and then "install" the TSR in free memory space wherever appropriate ("holes" in conventional or upper memory, EMS, DPMS, allocate XMS memory if needed, etc.). If the TSR is complicated, I divide it up into smaller chunks to give it a greater chance of finding a memory "hole" somewhere. I can even install a TSR, uninstall it, and then install it again in the same memory space even if other programs were installed afterwards. It's a very flexible method.

 

Complete thread:

Back to the forum
Board view  Mix view
23743 Postings in 2250 Threads, 410 registered users (0 online)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum