BIOS LBA function
BIOS LBA function
Hello, for my bootloader I use the BIOS LBA read function and I want to know how many sector it can read? Is there a standard limit? It is defined with 2 bytes, so theoreticly I can load 0xffff (65535) sectors.
Re: BIOS LBA function
On the wiki, it mentions some BIOSes have a limit of 127 sectors = 63.5KB. Ralph Brown's interrupt list mentions the same limit.
Re: BIOS LBA function
Another limiting factor is that your destination buffer should not cross 64kb memory
boundary.
Regards
M2004
boundary.
Regards
M2004
- DavidCooper
- Member
- Posts: 1150
- Joined: Wed Oct 27, 2010 4:53 pm
- Location: Scotland
Re: BIOS LBA function
[If you ever need to write to disk using the BIOS and LBA, don't assume that it will be 127 sectors too. The machine I program on has a BIOS that can only handle 64 sectors when writing data, though 127 when reading.]
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming