Code: Select all
.finddrivenum:
inc byte [bsDriveNumber]
mov ah, 0x41
mov bx, 0x55AA
mov dl, bsDriveNumber
int 0x13
cmp ah, 01
je FAILURE
cmp bx, 0xAA55
jne .finddrivenum
cmp byte [bsDriveNumber], 0x80
je .finddrivenum
cmp byte [bsDriveNumber], 0x00
je .finddrivenum
mov ah, 0x48
mov dl, bsDriveNumber
mov si, Buffer
int 0x13
mov ax, [ds:si+2]
and ax, 100b
jz .finddrivenum
Thanks, and hopefully if/when I get this working I will be able to get some screen shots up