Page 1 of 1
Boot Flat Binary
Posted: Fri Jul 02, 2010 6:43 pm
by Nathan
Hello,
I want to know from people here that have more knowledge on this are than me, as I've already tried to search at Google for "Boot+Flat+Binary", I didn't got anything good. Anyway, I've already tried
BootProg, but I was having problems to write the boot sector, as the program included said that my floppy was a FAT16, not FAT12(I think this because Windows XP don't show the floppy's as FAT12, only FAT16). Then I'm needing something like BootProg, or better, if someone could send me a BootProg pre-configured floppy image.
Best Regards,
Nathan Paulino Campos
Re: Boot Flat Binary
Posted: Fri Jul 02, 2010 9:13 pm
by Andr3w
How do you create your floppy images? VFD?
Re: Boot Flat Binary
Posted: Fri Jul 02, 2010 9:24 pm
by Nathan
VFD, but I've tried with a physical floppy too, and I got the same error.
Re: Boot Flat Binary
Posted: Sat Jul 03, 2010 12:36 am
by M2004
Maybe this example helps you a bit?
http://board.flatassembler.net/topic.php?t=6529
Regards
Mac2004
Re: Boot Flat Binary
Posted: Sat Jul 03, 2010 4:32 am
by Combuster
Several problems here:
1: Trying only one google query is not enough. You have to be more specific if you get unrelated results. Also, you have (once again) not searched the wiki:
link and
link
2: You are asking a stupid question: You imply that Bootprog is the only viable option, in line of "How do i use paintbrush to print a word document"
3: You created
two threads with the same question.
Re: Boot Flat Binary
Posted: Sat Jul 03, 2010 7:17 am
by Nathan
But I can use a Pascal program compiled as *.COM as the secondary binary?
Re: Boot Flat Binary
Posted: Sat Jul 03, 2010 8:02 am
by M2004
I think yes, but I haven't tested it with .com programs.
You need to adjust the bootloader to jump to .com start instead of the current start address.
That should do the trick. You are by all means welcome to adjust the code to suit your needs.
regards
Mac2004
Re: Boot Flat Binary
Posted: Sun Jul 04, 2010 8:11 am
by Nathan
When I tried to write the second file(using your Assembly one), what I got was this:
Code: Select all
C:\> partcopy k.bin 0 2200 test.img 200
Failed to read source at offset C6D
What I need to do?
Re: Boot Flat Binary
Posted: Sun Jul 04, 2010 10:42 am
by M2004
Hi!
In case of your secondary file being something like 3181 bytes (c6d in hex):
You can ignore the error message, because the partcopy
is just complaining that there's no more data to be read in the source file.
2nd problem that I can see: What is your destination drive?
Writing to floppy A: should be like:
regards
Mac2004
Re: Boot Flat Binary
Posted: Sun Jul 04, 2010 6:04 pm
by Nathan
I got this error for both commands(first one and the second):
What is wrong now?
Re: Boot Flat Binary
Posted: Sun Jul 04, 2010 7:16 pm
by quok
Nathan,
As combuster pointed out, you have opened two threads on this very same topic. Again, as combuster pointed out, you've not searched the wiki, or google, at all. If you had done that, you'd notice quite a few wiki articles and many links off google that go over how to create bootable disks, and how to replace bootsectors on disks.
You seem to generally want to be spoonfed everything, and don't seem able or willing to do any kind of troubleshooting or debugging for yourself. That really needs to change, or you won't make it here at all, or even as a programmer anywhere.