Any way to list BIOS drive numbers in real mode

Is there a way to list the BIOS disk indices in real mode (e.g. 0x80, 0x81 ...)?

I did not find an interrupt that is responsible for listing drive numbers.

+4
source share
1 answer

I do not know how to "enumerate" the available bios disks in real mode.

However, there are some things that may help:

  • Number of hard drives stored 40:75in the BIOS the Data Area . Although I do not know that drive numbers are assigned sequentially, I would expect them to be. If so, the list of hard drives will run from 0x80 to 0x80 + (40:75 - 1) (although there may possibly be 0 hard drives, so 0x80 may also be invalid).
  • There is also int 21h function 0E (select the default drive) that returns the "highest drive". Without verification, I assume this is due to LastDrive , but it might be useful.
  • , , int 13h function 08 ( ) , . , DOS 26 ( , -, ..), .

, bios . , # 0 0x80, # 1 - 0x81 .. 0.

, USB-, DOS, , . , , , .

+5

Source: https://habr.com/ru/post/1684507/


All Articles