You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chasonr edited this page Apr 16, 2025
·
1 revision
System boot record
The system boot record is built from v4.0/src/BOOT/MSBOOT.ASM. The code is incorporated into SYS.COM and FORMAT.COM.
The BIOS or the master boot record loads this image at 0000:7C00. On entry, DL contains the device number (0x00 or 0x80).
The code sets the stack to 0000:7C00. It then adjusts the disk parameter table (11 bytes addressed by vector 0x1E) so that the head settle time is set to 15 and the sector count is as specified in the BIOS Parameter Block.
It then loads the first sector of the root directory. The first two entries must be IO.SYS and MSDOS.SYS. If this is true, it loads three sectors from the beginning of the data area to 0070:0000, without regard to the cluster named in the entry for IO.SYS.
It loads the registers as follows, and jumps to the loaded sectors at 0070:0000:
CH = media descriptor byte
DL = physical drive number
AX:BX = linear sector number for the first data sector on the volume