Page 2 of 2

Posted: Sat Mar 29, 2008 5:41 pm
by Pyrofan1
Stop waisting everyones time
I answered no to the question "is my floppy disk or drive bad", meaning that they are both in working order.

Posted: Sat Mar 29, 2008 9:39 pm
by bewing
Somehow that boot signature dw 0xAA55 is not working right. The AA is supposed to be the high byte, and is supposed to be stored LAST.
If you look at the raw data that you posted, the last two bytes are 0xAA 0x55 -- they are backwards for some reason. The problem is in your nasm code, somehow. Not in your floppy creation command.

You might try doing db 0x55, db 0xaa, to force the proper byte order. I have no idea why it might be doing this though. It's almost like your copy of nasm was compiled to be big-endian or something.

Posted: Sat Mar 29, 2008 10:07 pm
by Brynet-Inc
I think you should familiarize yourself with the hexdump command bewing.. ;)

Posted: Sat Mar 29, 2008 10:08 pm
by Pyrofan1
You might try doing db 0x55, db 0xaa
Trying that makes qemu refuse to boot the floppy and on a physical machine, it's no different.

Posted: Sat Mar 29, 2008 10:15 pm
by Brynet-Inc
There is nothing wrong with the code, hexdump displays data in big endian byte order.

Posted: Sun Mar 30, 2008 1:42 pm
by bewing
Brynet-Inc wrote:I think you should familiarize yourself with the hexdump command bewing.. ;)
I don't use linux except to build things that need to be built with gcc. All MY dump routines output the bytes in actual byte order, so as not to confuse people with artificial byte reorderings -- so the byte dumped at offset 0x1ff really is at offset 0x1ff! :wink: And he didn't say which dump routine he used.

Posted: Sun Mar 30, 2008 2:14 pm
by Brynet-Inc
bewing wrote:I don't use linux except to build things that need to be built with gcc. All MY dump routines output the bytes in actual byte order, so as not to confuse people with artificial byte reorderings -- so the byte dumped at offset 0x1ff really is at offset 0x1ff! :wink: And he didn't say which dump routine he used.
Who said anything about Linux? I sure didn't... ;)