muta...@gmail.com
2021-12-31 12:05:23 UTC
(sorry for delay in zmodem response)
It occurs to me that at some level there is no difference
between a BIOS and an OS. Both of them have a set of
files/devices that they present to the level below them.
Both of them may present the file/device as either block
mode or a character stream. The C library will take care
of converting any block mode devices into character
streams.
An OS comes into existence when it converts one of those
files/devices into a new filesystem to present to the level
below them (ie applications).
PDOS-generic envisaged a BIOS that presented a structure
with the required C library in it. But this structure can
actually be made available to the OS's C library so that the
OS can access the BIOS devices as normal local files. Or
I can not bother with this layering and simply directly call
the Bos* functions, along with the Pos* functions, as part
of the OS C library. This does require activating block mode
and character mode logic in the same executable though.
BFN. Paul.
It occurs to me that at some level there is no difference
between a BIOS and an OS. Both of them have a set of
files/devices that they present to the level below them.
Both of them may present the file/device as either block
mode or a character stream. The C library will take care
of converting any block mode devices into character
streams.
An OS comes into existence when it converts one of those
files/devices into a new filesystem to present to the level
below them (ie applications).
PDOS-generic envisaged a BIOS that presented a structure
with the required C library in it. But this structure can
actually be made available to the OS's C library so that the
OS can access the BIOS devices as normal local files. Or
I can not bother with this layering and simply directly call
the Bos* functions, along with the Pos* functions, as part
of the OS C library. This does require activating block mode
and character mode logic in the same executable though.
BFN. Paul.