flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Is Fn 8 Int 13h reliable nowadays? |
Author |
|
smiddy 05 Mar 2015, 03:17
Try INT 13h ah=48h, see attached specification.
I have used these extended functions for boot loading from CD. I will soon be developing a USB Flash drive boot, likely similar to what you are doing and I planned on using those BIOS calls.
|
|||||||||||
05 Mar 2015, 03:17 |
|
zhak 05 Mar 2015, 10:20
Right, but the same spec, describing the Device Parameters Block (pg. 33), refers back to function 8 for logical chs:
Code: Offset Type Description ... ... ... 4 DWord Number of default cylinders. The content of this field shall be one greater than the maximum cylinder number. INT 13h FN 08h shall be used to find the logical number of cylinders. 8 DWord Number of default heads. The content of this field shall be one greater than the maximum head number. INT 13h FN 08h shall be used to find the logical number of heads. 12 DWord Number of default sectors per track. The content of this field shall be the same as the maximum sector number because sector addresses are 1 based. INT 13h FN 08h shall be used to find the logical number of sectors per track. ... ... ... I assume this relates to usb drives, cause they emulate chs. probably I'll need to do some testing with invalid paramenters to different devices and see what comes out... |
|||
05 Mar 2015, 10:20 |
|
smiddy 05 Mar 2015, 10:56
You should be able to use Logical Block Addresses instead of CHS.
|
|||
05 Mar 2015, 10:56 |
|
zhak 05 Mar 2015, 11:36
Probably you're right. No need in overcomplicating things since if bios can boot from usb, then it will definitely support edd, and checking partition table for valid start_lba/size would be enough on this stage. all enhanced checks with chs translations and the rest could be done later on demand. thanks
|
|||
05 Mar 2015, 11:36 |
|
smiddy 06 Mar 2015, 00:44
No sweat! I don't know when I'll get to mine, should be within the month. I'll post it here once I do.
|
|||
06 Mar 2015, 00:44 |
|
Coty 12 Mar 2015, 15:04
The reliability of utilizing BIOS ints is debatable, modern PCs are losing compatibility with anything that doesn't utilize secure boot and not all UEFI properly emulate BIOS even when in legacy mode.
All this is the cost of making PCs somehow "better". |
|||
12 Mar 2015, 15:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.