Xref: news2.mv.net comp.os.msdos.djgpp:7358 From: Elliott Oti 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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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