home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
L.ZIP
/
LITBLA.LZH
/
WPART_C.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1991-04-01
|
394b
|
18 lines
program write_boot; {Write the partition boot sector on drive C:}
uses dos;
var
boot :array[0..511] of byte;
r :registers;
fin :file;
begin
assign(fin,'boot.sec');
reset(fin,512);
blockread(fin,boot,1);
close(fin);
r.ax:=$0301;
r.bx:=ofs(boot);
r.es:=seg(boot);
r.dx:=$0080;
r.cx:=$0001;
intr($13,r);
end.