hey
im getting an error unable to open file.
and do i have to load into the buffer or just load straight into the file ?
thanks
TARGETDRIVE equ 0 ; hard drive (0, 1, ...)
org 100h
Start:
mov dx,80h + TARGETDRIVE ; read MBR of target drive
mov cx,1h ; it's always the first sector
mov bx, buffer ; point to our buffer
mov ax, 0201h ; read one sector
int 13h
mov cx,4h ; read up to four entries
mov si, buffer + 1BEh; scan our partition table
mov si,begin
mov ax, 4C00h ; Exit to DOS.
int 21h
buffer db 0 ;Dynamic buffer, 512 bytes.
Begin: INCBIN "holdsec.bin"