17 lines
216 B
NASM
17 lines
216 B
NASM
; IN DL drive number
|
|
; BP ptr to bpb_size'd buffer
|
|
bpb_load:
|
|
mov [bp+(bpb_size-1)], dl
|
|
|
|
xor dx, dx
|
|
xor ax, ax
|
|
call drive_read
|
|
|
|
mov si, (diskbuf+0x0B)
|
|
mov di, bp
|
|
mov cx, (bpb_size-1)
|
|
rep movsb
|
|
|
|
ret
|
|
|