Documente Academic
Documente Profesional
Documente Cultură
Extended Read
On Exit
If CF=0
AH=0= Success
If CF=1
AH= Error code
Extended Write
Service used for extended read is int 13h/42h
On Entry
AH=43H
AL=0,1 write with verify off
2 write with verify on
DL=drive #
DS:SI= far address of Disk address packet
On Exit
If CF=0
AH=0= Success
If CF=1
AH= Error code
_AH=0x42;
_DL=0x80;
_SI=(unsigned int)&dap;
geninterrupt(0x13);
puts ("enter the path: ");
gets (st);
fptr = fopen(st,"wb");
fwrite(buf,512,1,fptr);
fclose (fptr);
}
Disk Partitioning
Partition Table contains information pertaining
to disk partitions.
Partition Table is the first physical sector
Head = 0
Track/Cylinder = 0
Sec = 1 or LBA = 0
Partition Table at CHS = 001 is also called MBR
(Master Boot Record).
Description
Size
Description
Byte
Byte
Byte
Byte
Byte
File System ID
Size
Description
Byte
Byte
Byte
Double
Word
Double
Word
File System ID
0 ~ FF for various O.S.
Bit Description
#
00
Empty
01
02
Xenix root
03
Xenix/usr
04
05
06
07
08
09
0A
0B
Win 95
FAT 32
0C
Win 95
FAT 32
LBA Mapped
0E
Win 95
FAT 16
LBA Mapped
0F
Primary Partition
Partition defined in the MBR (Master Boot
Record) are primary partition.
Each Primary Partition contains information
about its respective O.S.
However if only one O.S. is to be installed then
extended partitions.
Extended Partitions
MBR
Primary
Partitio
n
Extended Partition