Lines Matching refs:bp
94 mov bp,sp ; bp = 0x7c00
97 mov byte ptr [bp+PhysicalDrive],dl ; BBS defines that BIOS would pass the booting driver number to the loader through DL
107 cmp word ptr [bp+SectorSignature],0aa55h ; Verify Boot Sector Signature
109 mov cx,word ptr [bp+RootEntries] ; cx = RootEntries
116 mov al,byte ptr [bp+NoFats] ; al = NoFats
118 mul word ptr [bp+SectorsPerFat32] ; ax = NoFats * SectorsPerFat
119 add ax,word ptr [bp+ReservedSectors] ; ax = NoFats * SectorsPerFat + ReservedSectors = RootLBA
121 mov word ptr [bp],ax ; Save FirstClusterLBA for later use
123 mov ax,word ptr [bp+RootCluster] ; ax = StartCluster of Root Directory
126 mov bl,byte ptr [bp+SectorsPerCluster]; bx = SectorsPerCluster
128 add ax, word ptr [bp] ; ax = FirstClusterLBA + (StartCluster-2)*SectorsPerCluster
184 mov bl,byte ptr [bp+SectorsPerCluster] ; bx = SectorsPerCluster
188 add ax, word ptr [bp] ; ax = FirstClusterLBA + (StartCluster-2)*SectorsPerCluster
190 mov bl,byte ptr [bp+SectorsPerCluster] ; bx = Number of Sectors in a cluster
195 mov word ptr [bp+JumpSegment],ax
227 add eax,dword ptr [bp+LBAOffsetForBootSector] ; Add LBAOffsetForBootSector to Start LBA
228 add eax,dword ptr [bp+HiddenSectors] ; Add HiddenSectors to Start LBA
232 mov bp,07bfch ; bp = 0x7bfc
235 movzx ebx,word ptr [bp] ; bx = MaxSector
247 div word ptr [bp+2] ; ax = ax / (MaxHead + 1) = Cylinder
252 mov bp,07c00h ; bp = 0x7c00
253 mov dl,byte ptr [bp+PhysicalDrive] ; dl = Drive Number