Device drivers: Changing the attribute word at install time? (Developers)
> Hello mbbrutman, hello ecm,
>
> What happens if you set attribute bit 1 unconditionally?
>
> As far as I can tell from Microsoft's source code release
> (https://github.com/microsoft/MS-DOS), it seems that MS-DOS 2.x only cares
> about bit 1 for character devices — in which case it says whether the
> device is the default stdout. Perhaps you could simply set bit 1 for a
> block device driver and get away with it.
>
> Thank you!
I could set the bits and hope that the older versions of DOS ignores what it does not like, but the professional programmer in me says that relying on undocumented behavior is probably not a great idea. Debugging these things is difficult already.
If PC DOS an MS DOS only evaluate the attribute bits after the init routine runs (as the books suggest) then I have a solution - update the attribute bits at init time. Otherwise it's safer to do separate versions of the device driver for DOS 2, 3, and 5/6.
Complete thread:
- Device drivers: Changing the attribute word at install time? - mbbrutman, 02.10.2023, 23:47 (Developers)
- Device drivers: Changing the attribute word at install time? - glennmcc, 03.10.2023, 03:43
- Device drivers: Changing the attribute word at install time? - mbbrutman, 03.10.2023, 20:21
- Device drivers: Changing the attribute word at install time? - ecm, 03.10.2023, 20:56
- Device drivers: Changing the attribute word at install time? - mbbrutman, 03.10.2023, 21:26
- Device drivers: Changing the attribute word at install time? - tkchia, 03.10.2023, 21:32
- Device drivers: Changing the attribute word at install time? - mbbrutman, 03.10.2023, 22:48
- Device drivers: Changing the attribute word at install time? - tom, 04.10.2023, 23:43
- Device drivers: Changing the attribute word at install time? - tkchia, 03.10.2023, 21:32
- Device drivers: Changing the attribute word at install time? - mbbrutman, 03.10.2023, 21:26
- Device drivers: Changing the attribute word at install time? - ecm, 03.10.2023, 20:56
- Device drivers: Changing the attribute word at install time? - tkchia, 03.10.2023, 21:28
- Device drivers: Changing the attribute word at install time? - mbbrutman, 03.10.2023, 22:51
- Device drivers: Changing the attribute word at install time? - bretjohn, 06.10.2023, 21:35
- Device drivers: Changing the attribute word at install time? - mbbrutman, 07.10.2023, 20:42
- Device drivers: Changing the attribute word at install time? - bretjohn, 09.10.2023, 19:17
- Device drivers: Changing the attribute word at install time? - mbbrutman, 02.11.2023, 19:39
- Device drivers: Changing the attribute word at install time? - bretjohn, 09.10.2023, 19:17
- Device drivers: Changing the attribute word at install time? - mbbrutman, 07.10.2023, 20:42
- Device drivers: Changing the attribute word at install time? - bretjohn, 06.10.2023, 21:35
- Device drivers: Changing the attribute word at install time? - mbbrutman, 03.10.2023, 22:51
- Device drivers: Changing the attribute word at install time? - Rugxulo, 23.11.2023, 22:15