www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/16/07:45:50

Xref: news2.mv.net comp.os.msdos.djgpp:7358
From: Elliott Oti <e DOT oti AT stud DOT warande DOT ruu DOT nl>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Creating Boot Code with DJGPP
Date: Fri, 16 Aug 1996 00:16:23 -0700
Organization: Academic Computer Centre Utrecht, (ACCU)
Lines: 20
Message-ID: <32142047.7FF1@stud.warande.ruu.nl>
References: <01bb8af9$332875c0$892521cf AT sam>
NNTP-Posting-Host: warande1078.warande.ruu.nl
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Sam Phillips wrote:
> 
> I was wondering if there was a way to create some code to put into a boot
> sector, and then after having it is there a painless method to put the code
> in the bootsector.
> 
> Thanks
> 
> Sam Phillips

Bootsector code is something I know little about, and most assemblers have a 
switch to make them write the assembled output to the bootsector instead
of the disk. I don't know if DJGPP's AS has such a switch; if not, you'll
have to edit your floppy's boot sector manually with a hex editor.
But if you're really interested in this stuff I suggest you get hold of
the sources to the standard Linux kernel (they're easily available from most
CD-ROM vendors) and study the boot code. The Linux compiler is GCC so that should
ease your pains somewhat.

Elliott

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019