Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

How to keep resident only a part of the program (Developers)

posted by tom Homepage, Germany (West), 14.08.2021, 11:40

> But I know that many assembler programs CAN do it. They use the INT
> 21h/AH=31h call and determine which portion of code to thow away and which
> to keep? Or they use some other mechanism?

usually, you arrange your code layout 'manually' like


resident_code
resident_stuff
transient_code
more_stuff


and make sure that resident_stuff never calls anything in more_stuff after going resident. in ASM this easy, in C at least doable.

for a PASCAL example, you might look at the sources of FreeDOS KEYB.EXE hich I think is written in (some strange sort of) Pascal.

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 58 users online (0 registered, 58 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum