Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Combined .com executable/DOS driver (Announce)

posted by Ninho E-mail, 12.06.2010, 14:37

snippety-snip... Just an detail which you may or may not remember

>> The reason is that an FFFFFFFFh value denotes the LAST driver in the DOS
>> driver list.
> Indeed like Zbikowski's "Z" on MCB's.

Actually, when loading a driver, MS-DOS (others ?) check only the segment part (high word) of this double word for the special value FFFFh. This behaviour (by design?) will allow us to make a dual device driver/ dot com executable, using the first two bytes as a short jump over the rest of the driver header. Of course, the init routine for the 'sys' specific part of the init code should replace FFFF at offset zero before giving back control to the DOS system initialisation routines...

Cheers

--
Ninho

 

Complete thread:

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