flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > An EXE header stripper program. how does it work? |
Author |
|
comrade 15 Feb 2004, 18:47
Boot sector is 512 bytes?
|
|||
15 Feb 2004, 18:47 |
|
milind 15 Feb 2004, 19:29
yes the boot sector is 512 bytes but the thing is 512 bytes are written to hdr.bin while the file actually written to the boot sector is boot.bin
|
|||
15 Feb 2004, 19:29 |
|
Ralph 15 Feb 2004, 21:47
Tasm will generate whatever header you tell it too, and in your case that seems to be a standard DOS MZ executable. A much better thing to do would've been to simply make tasm spit out a .com file which could be written directly to the boot-disk instead of going through the trouble of generating a header only to remove it in the next step. I would probably just ignore all that and rewrite boot.asm directly for fasm, which won't be too hard. Just make sure you're not specifying any destination file format and that you include 'org 7C00h' to make sure your absolute addresses are calculated properly.
|
|||
15 Feb 2004, 21:47 |
|
milind 16 Feb 2004, 09:43
Thank you Ralph, well I was thinking of doing the same thing. I just need one help, how do I write my binary file to the 1st sector of the disk??
|
|||
16 Feb 2004, 09:43 |
|
pelaillo 16 Feb 2004, 13:02
There's already a fasm source for writing a bootsector in menuetOS site to allow booting Menuetos from HDD
|
|||
16 Feb 2004, 13:02 |
|
Bitdog 18 Feb 2004, 12:37
http://bitdog.home.att.net/temp/bootread.zip
with fasm source bootread.com & bootwrite.com for floppy drive A: FreeBee rough draft version, but it works. |
|||
18 Feb 2004, 12:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.