Re: Accessing large Hard disks





"Ruud" <Ruud.Baltissen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4aec5cf6$0$5670$9a6e19ea@xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Having read BGB's answer it seems I have to go for LBA in PIO mode.

In the mean while I changed my mind:
1) Running the program from EPROM sounds nice but undoable for people
not having such a card. And, BLUSH, I forgot that I cannot equip my
laptop with such a car either.
2) Testing with the floppy sounds nice handling real data means
accessing the hard disk anyway.
So I decided to start directly from the hard disk.


But while doing some tests with the floppy, I ran into some trouble:
things went wrong when saving or loading more then 32 sectors to/from
the floppy disk. In that case I gaot error #9, meaning: DMA out of the
64 KB boundary. But 32 sectors =E0 512 bytes is only 16 KB. Did I miss
something ???

Any info is appreciated!

It really doesn't matter that it is only 16 KB. The error is that
one of those bytes crossed a physical 64k boundary. You must make
sure that your 16k is within a physical 64k block.

For example, if I were to transfer only 16 bytes, the following
would still give the error:

mov es,00FFFh
mov bx,0000Fh
mov cx,10h

Since the physical address is ((0FFFh<<4)+000Fh) or 0x0FFFFh.

The first byte would still be in the first 64k of RAM, but as soon
as it tried to transfer the second byte, it would error since
0FFFFh + 1 is now 10000h (65536d), in the second 64k of RAM.

Do you see what it means by 64k boundary?

Ben

--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Forever Young Software
http://www.frontiernet.net/~fys/index.htm
http://www.frontiernet.net/~fys/collections.htm
To reply by email, please remove the zzzzzz's

Batteries not included, some assembly required.

.



Relevant Pages

  • Re: Accessing large Hard disks
    ... Having read BGB's answer it seems I have to go for LBA in PIO mode. ... In the mean while I changed my mind: ... So I decided to start directly from the hard disk. ... But while doing some tests with the floppy, ...
    (comp.lang.asm.x86)
  • Mystery Solved - Boot CEPC from Hard Disk
    ... The reason for this is that as you increase the size of your partition (why ... Download and install the IDE and floppy drivers from the same site. ... Boot the device (BTW, the "Del" key is the key that gets you to the ... and the NK.bin file will get copied over to your hard disk. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: A little help needed with debug and int 0x13
    ... >little bootloader to load the program into memory and run it. ... >either not reading from the floppy correctly, ... > mov ax, 0x0201 ... cylinder 0, head 0, sector 1. ...
    (comp.lang.asm.x86)
  • Re: Can a program prove its own integrity?
    ... case the boot floppy is broken and has to be replaced it can be done. ... > eventually decrypt the real bootloader on the hard disk, ... > Put the pre-bootloader and the random data on ... a virtual machine requires a lot of code ...
    (sci.crypt)
  • Re: talking to CTK 571 synthesizer
    ... memory area and write it to the floppy in prescribed places. ... The routine wout is also from lilo and writes the contents ... mov ax,#0xa000 ...
    (comp.sys.ibm.pc.hardware.misc)