Refine comments.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7816 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
klu2 2009-03-05 14:13:25 +00:00
parent 1664e0afed
commit 4d382070b4

View File

@ -82,10 +82,10 @@ BootSectorEntryPoint:
mov byte ptr [bp+PhysicalDrive],dl ; BBS defines that BIOS would pass the booting driver number to the loader through DL mov byte ptr [bp+PhysicalDrive],dl ; BBS defines that BIOS would pass the booting driver number to the loader through DL
int 13h ; Get Drive Parameters int 13h ; Get Drive Parameters
xor ax,ax ; ax = 0 xor ax,ax ; ax = 0
mov al,dh ; al = dh mov al,dh ; al = dh (number of sides (0 based))
inc al ; MaxHead = al + 1 inc al ; MaxHead = al + 1
push ax ; 0000:7bfe = MaxHead push ax ; 0000:7bfe = MaxHead
mov al,cl ; al = cl mov al,cl ; al = cl (CL = sectors per track)
and al,03fh ; MaxSector = al & 0x3f and al,03fh ; MaxSector = al & 0x3f
push ax ; 0000:7bfc = MaxSector push ax ; 0000:7bfc = MaxSector
@ -149,7 +149,7 @@ FindNext:
jmp NotFoundAll jmp NotFoundAll
FoundAll: FoundAll:
FoundEFILDR: FoundEFILDR: ; 0x7cfe
mov cx,bx ; cx = Start Cluster for EFILDR <---------------------------------- mov cx,bx ; cx = Start Cluster for EFILDR <----------------------------------
mov ax,cs ; Destination = 2000:0000 mov ax,cs ; Destination = 2000:0000
add ax,2000h add ax,2000h
@ -170,8 +170,8 @@ ReadFirstClusterOfEFILDR:
call ReadBlocks call ReadBlocks
pop ax pop ax
JumpIntoFirstSectorOfEFILDR: JumpIntoFirstSectorOfEFILDR:
mov word ptr [bp+JumpSegment],ax mov word ptr [bp+JumpSegment],ax ; 0x7d26
JumpFarInstruction: JumpFarInstruction: ; 0x7d2a
db 0eah db 0eah
JumpOffset: JumpOffset:
dw 0000h dw 0000h
@ -252,7 +252,7 @@ LimitTransfer:
; **************************************************************************** ; ****************************************************************************
; ERROR Condition: ; ERROR Condition:
; **************************************************************************** ; ****************************************************************************
NotFoundAll: NotFoundAll: ; 0x7da6
; if we found EFILDR, continue ; if we found EFILDR, continue
test bx,bx test bx,bx
jne FoundEFILDR jne FoundEFILDR