Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Device drivers: Changing the attribute word at install time? (Developers)

posted by mbbrutman Homepage, Washington, USA, 02.10.2023, 23:47

I'm writing my first device driver and I'd like it to run on DOS 2.1 and up without providing different versions. (I'm going to ignore DOS 4.x here.)

All of the documentation that I'm reading implies that the attribute word of the device header is read only. Except for the book "Writing MS-DOS Device Drivers" by Robert S. Lai, which talks about an advanced method where the install routine queries DOS and then modifies the attribute word based on what is needed.

For me I'm interested in bit 1 which indicates if 32 bit block addressing is available. This makes sense for DOS 5 but not for older versions of DOS.

Is modifying the attribute word a legitimate way to handle this? Do you know of any device drivers that do this? I suppose it works but that assumes that DOS evaluates it after the initialization routine, and I can't find anything that says when the attribute word is evaluated.


-Mike

 

Complete thread:

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