flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Reading Sectors at boot time |
Author |
|
bubach 14 Nov 2004, 12:54
I see that you are trying to load 35 sectors with one BIOS call, you can't load more then 18 sector at a time in a safe way.
Take a look at my "help optimizing bootsec..." thread for an example.. / Christoffer Last edited by bubach on 13 Feb 2012, 15:03; edited 1 time in total |
|||
14 Nov 2004, 12:54 |
|
crc 14 Nov 2004, 13:56
Quote: you can´t load more then 18 sector at a time in a safe way. *sigh* Why can't the BIOS be more capable Oh well, I'll take a look at your code and see if I can make sense of it... |
|||
14 Nov 2004, 13:56 |
|
Octavio 14 Nov 2004, 14:08
crc wrote:
and also you can´t traverse a dma page when reading data from the floppy, y recommend that you read sectors one by one (there is no speed difference) and your bufer must be aligned to a sector size. |
|||
14 Nov 2004, 14:08 |
|
ASHLEY4 14 Nov 2004, 14:42
The best way is read/write a sector at a time, inc sector and loop, check for sector is more than 18, if so make sector 1, then check if head is 0 or 1, if 0 then inc, if 1 dec and add 1 to track.
keep doing this until you have come to your end address. \\\\||//// (@@) ASHLEY4. Batteries not included, Some assembly required. |
|||
14 Nov 2004, 14:42 |
|
Matrix 14 Nov 2004, 16:11
that's right,
some bioses doesn't support reading more than 1 sectors, and if they do you should look out of reading out of track, cause' it will overflow and after 18 it will read same track 1 2 ... you can read 1 sectors at a time no? |
|||
14 Nov 2004, 16:11 |
|
crc 14 Nov 2004, 17:37
Quote: you can read 1 sectors at a time no? Actually, I've never attempted to do it sector by sector. I've always used variations of this boot sector routine, always loading as many sectors as I needed... *sighs again* I hate real-mode and floppies |
|||
14 Nov 2004, 17:37 |
|
ASHLEY4 14 Nov 2004, 18:16
In my pmode floppy driver, i have code it to read 1 sector at a time, although you can call read track if you want, it gives you more control doing it sector by sector.
\\\\||//// (@@) ASHLEY4. Batteries not included, Some assembly required. |
|||
14 Nov 2004, 18:16 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.