X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: Loading boot sector to memory Date: 21 Apr 2002 17:11:05 GMT Organization: Aachen University of Technology (RWTH) Lines: 13 Message-ID: References: NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1019409065 6999 137.226.32.75 (21 Apr 2002 17:11:05 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 21 Apr 2002 17:11:05 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Jacky Luk wrote: > According to the above, how do you setup the registers for loading boot > sector to memory (GAS or GCC)? In DJGPP, you shouldn't usually do that at all, but rather call the biosdisk() or _bios_disk() function which does it for you. Or, if you really want to do it yourself, consult how _bios_disk() itself is implemented (look into the DJGPP libc sources). -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.