What is the maximum number of sectors I can read with 2h function?
Is there any limitation apart from the AL register (255 max) and the amount of memory?
Thanks...
Interrupt 13h Question
Re: Interrupt 13h Question
These sorts of questions are exactly what Ralf Brown's Interrupt List (RBIL) is supposed to help with.
Unfortunately, the answer is BIOS-specific. I haven't looked at my copy of RBIL, but I'd expect that you had best keep your transfers below 64K, and probably <128 sectors (NOT including 128). I have heard that some BIOSes have problems with transfers of 128 sectors, for a different Int13h command -- and I would expect it would happen for all Int13h commands on that BIOS. I always use max 32K transfers, myself.
Unfortunately, the answer is BIOS-specific. I haven't looked at my copy of RBIL, but I'd expect that you had best keep your transfers below 64K, and probably <128 sectors (NOT including 128). I have heard that some BIOSes have problems with transfers of 128 sectors, for a different Int13h command -- and I would expect it would happen for all Int13h commands on that BIOS. I always use max 32K transfers, myself.
Re: Interrupt 13h Question
I'm sorry if I seemed to be lazy, I didn't know RBIL list of interrupts could help me. Anyway, thanks for your reply.
Re: Interrupt 13h Question
with sub function 0x02h there is a maximum of 255 sectors per call, use subfunction 0x42h if you want to read more per call, as its limit is 65535 per call
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: Interrupt 13h Question
Not really. The extended services (AH=42H) only allow you to read 127 sectors at a time.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]