This commit is contained in:
ridethepig 2022-09-21 22:15:05 +08:00
parent a0dacc4b9e
commit 274d517426
2 changed files with 6 additions and 6 deletions

Binary file not shown.

View File

@ -222,12 +222,12 @@ FuncFindFile:
mov word [RootDirSectorNow], SectorNoOfRootDirectory
mov word [LeftRootDirSectors], RootDirSectors
.FindLoaderInRootDir:
mov ax, [RootDirSectorNow]; ax <- 现在正在搜索的扇区号
mov ax, [RootDirSectorNow] ; ax <- 现在正在搜索的扇区号
mov bx, OffsetOfSectorBuf ; es:bx = BaseOfSectorBuf:OffsetOfSectorBuf
mov cx, 1
call ReadSector
mov si, [bp + 4] ; ds:si -> "LOADER BIN"
mov si, [bp + 4] ; ds:si
mov di, OffsetOfSectorBuf ; es:di -> BaseOfSectorBuf:400h = BaseOfSectorBuf*10h+400h
mov dx, 10h ; 32(目录项大小) * 16(dx) = 512(BPB_BytsPerSec)