Home | History | Annotate | Download | only in BootSector

Lines Matching refs:bp

93   movw  %sp, %bp      # bp = 0x7c00

96 movb %dl, PhysicalDrive(%bp) # BBS defines that BIOS would pass the booting driver number to the loader through DL
106 cmpw $0xaa55, SectorSignature(%bp) # Verify Boot Sector Signature
108 movw RootEntries(%bp), %cx # cx = RootEntries
115 movb NoFats(%bp), %al # al = NoFats
117 mulw SectorsPerFat(%bp) # ax = NoFats * SectorsPerFat
118 addw ReservedSectors(%bp), %ax # ax = NoFats * SectorsPerFat + ReservedSectors = RootLBA
124 movw %ax, (%bp) # Save FirstClusterLBA (FirstDataSector) for later use
176 movb SectorsPerCluster(%bp), %bl # bx = SectorsPerCluster
180 addw (%bp), %ax # ax = FirstClusterLBA + (StartCluster-2)*SectorsPerCluster
182 movb SectorsPerCluster(%bp), %bl # bx = Number of Sectors in a cluster
187 movw %ax, JumpSegment(%bp)
220 addl LBAOffsetForBootSector(%bp), %eax # Add LBAOffsetForBootSector to Start LBA
221 addl HiddenSectors(%bp), %eax # Add HiddenSectors to Start LBA
225 movw $0x7bfc, %bp # bp = 0x7bfc
228 movzwl (%bp), %ebx # bx = MaxSector
240 divw 2(%bp) # ax = ax / (MaxHead + 1) = Cylinder
245 movw $0x7c00, %bp # bp = 0x7c00
246 movb PhysicalDrive(%bp), %dl # dl = Drive Number