Non system disk error

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Pyrofan1
Member
Member
Posts: 234
Joined: Sun Apr 29, 2007 1:13 am

Post 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.
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Post 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.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

I think you should familiarize yourself with the hexdump command bewing.. ;)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Pyrofan1
Member
Member
Posts: 234
Joined: Sun Apr 29, 2007 1:13 am

Post 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.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

There is nothing wrong with the code, hexdump displays data in big endian byte order.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
bewing
Member
Member
Posts: 1401
Joined: Wed Feb 07, 2007 1:45 pm
Location: Eugene, OR, US

Post 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.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post 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... ;)
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
Post Reply