push bx >mov ax, 6900 >mov dx,bx >mov bx,[bx] >int 21 >pop bx >retfAnd I would call this bin file (ie:serial.bin) from FPD like :
mp = chr(asc(upper(driveletter))-ASC("A")+1)+chr(0)+; > space(22) && 24 bytes total >load serial >call serial with mp && execute asm routineThese type of asm routines was perfect with FP 2.x and I nearly wrote all my Novell call routines with asm plus many routines to check existing drives, their types, reading and writing to absolute sectors etc. With VFP (and 32 bit environments like NT) I had to totally discard them.